Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean trailing white-spaces #54

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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