diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2011-01-31 18:23:13 -0500 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2011-02-22 05:02:47 -0500 |
commit | bf7d4140450f6dbc019a8831223e08d778f90dd7 (patch) | |
tree | f313f593be38a7e0332f45929cfa6c421ebb28f2 /drivers/power/bq27x00_battery.c | |
parent | c1b9ab67e7c7021be9d0db6345d6ccc5d70248f1 (diff) |
bq27x00: Minor cleanups
* Consistently use uppercase for hexadecimal values.
* Clarify/fix the unit of functions return value in its comment.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Diffstat (limited to 'drivers/power/bq27x00_battery.c')
-rw-r--r-- | drivers/power/bq27x00_battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 003be5f1c785..b44555f1b633 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #define BQ27000_FLAG_CHGS BIT(7) | 56 | #define BQ27000_FLAG_CHGS BIT(7) |
57 | #define BQ27000_FLAG_FC BIT(5) | 57 | #define BQ27000_FLAG_FC BIT(5) |
58 | 58 | ||
59 | #define BQ27500_REG_SOC 0x2c | 59 | #define BQ27500_REG_SOC 0x2C |
60 | #define BQ27500_REG_DCAP 0x3C /* Design capacity */ | 60 | #define BQ27500_REG_DCAP 0x3C /* Design capacity */ |
61 | #define BQ27500_FLAG_DSC BIT(0) | 61 | #define BQ27500_FLAG_DSC BIT(0) |
62 | #define BQ27500_FLAG_FC BIT(9) | 62 | #define BQ27500_FLAG_FC BIT(9) |
@@ -321,7 +321,7 @@ static int bq27x00_battery_temperature(struct bq27x00_device_info *di, | |||
321 | } | 321 | } |
322 | 322 | ||
323 | /* | 323 | /* |
324 | * Return the battery average current | 324 | * Return the battery average current in µA |
325 | * Note that current can be negative signed as well | 325 | * Note that current can be negative signed as well |
326 | * Or 0 if something fails. | 326 | * Or 0 if something fails. |
327 | */ | 327 | */ |