diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
commit | d635711daa98be86d4c7fd01499c34f566b54ccb (patch) | |
tree | aa5cc3760a27c3d57146498cb82fa549547de06c /drivers/staging/nvec/nvec_power.c | |
parent | c91265cd0efb83778f015b4d4b1129bd2cfd075e (diff) |
Linux-libre 4.6.2-gnu
Diffstat (limited to 'drivers/staging/nvec/nvec_power.c')
-rw-r--r-- | drivers/staging/nvec/nvec_power.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/staging/nvec/nvec_power.c b/drivers/staging/nvec/nvec_power.c index 04a7402ae..b4a0545e8 100644 --- a/drivers/staging/nvec/nvec_power.c +++ b/drivers/staging/nvec/nvec_power.c @@ -207,8 +207,10 @@ static int nvec_power_bat_notifier(struct notifier_block *nb, case TYPE: memcpy(power->bat_type, &res->plc, res->length - 2); power->bat_type[res->length - 2] = '\0'; - /* this differs a little from the spec - fill in more if you find some */ + /* + * This differs a little from the spec fill in more if you find + * some. + */ if (!strncmp(power->bat_type, "Li", 30)) power->bat_type_enum = POWER_SUPPLY_TECHNOLOGY_LION; else @@ -356,12 +358,14 @@ static void nvec_power_poll(struct work_struct *work) if (counter >= ARRAY_SIZE(bat_iter)) counter = 0; -/* AC status via sys req */ + /* AC status via sys req */ nvec_write_async(power->nvec, buf, 2); msleep(100); -/* select a battery request function via round robin - doing it all at once seems to overload the power supply */ + /* + * Select a battery request function via round robin doing it all at + * once seems to overload the power supply. + */ buf[0] = NVEC_BAT; buf[1] = bat_iter[counter++]; nvec_write_async(power->nvec, buf, 2); |