Skip to content

Commit

Permalink
Merge pull request #54 from krzk/space-clean
Browse files Browse the repository at this point in the history
Clean trailing white-spaces
  • Loading branch information
lumag authored Dec 3, 2023
2 parents 2c465e5 + 581f14d commit 65d8673
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cdb_assist.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void cdb_parser_bool(struct cdb_assist *cdb, const char *key, bool set)
for (i = 0; i < 5; i++)
if (strcmp(key, sz_keys[i]) == 0)
break;

switch (i) {
case 0:
cdb->vbat = set;
Expand All @@ -126,7 +126,7 @@ static void cdb_parser_voltage(struct cdb_assist *cdb, unsigned set, unsigned ac
cdb->voltage_actual = actual;
cdb->voltage_set = set;
}

static void cdb_parser_vref(struct cdb_assist *cdb, unsigned vref)
{
cdb->vref = vref;
Expand Down Expand Up @@ -224,7 +224,7 @@ static void cdb_parser_push(struct cdb_assist *cdb, char ch)
case STATE_key_of:
if (ch == 'f')
cdb_parser_bool(cdb, cdb->key, false);
cdb->state = STATE_;
cdb->state = STATE_;
break;
case STATE_key_value:
if (isdigit(ch)) {
Expand Down
6 changes: 3 additions & 3 deletions fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int handle_udev_event(int fd, void *data)

return 0;
}

struct fastboot *fastboot_open(const char *serial, struct fastboot_ops *ops, void *data)
{
struct fastboot *fb;
Expand All @@ -345,9 +345,9 @@ struct fastboot *fastboot_open(const char *serial, struct fastboot_ops *ops, voi
fb->serial = serial;
fb->ops = ops;
fb->data = data;

fb->state = FASTBOOT_STATE_START;

fb->mon = udev_monitor_new_from_netlink(udev, "udev");
udev_monitor_filter_add_match_subsystem_devtype(fb->mon, "usb", NULL);
udev_monitor_enable_receiving(fb->mon);
Expand Down
6 changes: 3 additions & 3 deletions qcomlt_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,23 @@ static void *qcomlt_dbg_open(struct device *dev)

static int qcomlt_dbg_power(struct device *dev, bool on)
{
struct qcomlt_dbg *dbg = dev->cdb;
struct qcomlt_dbg *dbg = dev->cdb;

// fprintf(stderr, "qcomlt_dbg_power(%d)\n", on);
return write(dbg->fd, &("pP"[on]), 1);
}

static void qcomlt_dbg_usb(struct device *dev, bool on)
{
struct qcomlt_dbg *dbg = dev->cdb;
struct qcomlt_dbg *dbg = dev->cdb;

// fprintf(stderr, "qcomlt_dbg_usb(%d)\n", on);
write(dbg->fd, &("uU"[on]), 1);
}

static void qcomlt_dbg_key(struct device *dev, int key, bool asserted)
{
struct qcomlt_dbg *dbg = dev->cdb;
struct qcomlt_dbg *dbg = dev->cdb;

// fprintf(stderr, "qcomlt_dbg_key(%d, %d)\n", key, asserted);

Expand Down

0 comments on commit 65d8673

Please sign in to comment.