]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bq27x00: Minor cleanups
authorPali Rohár <pali.rohar@gmail.com>
Mon, 31 Jan 2011 23:23:13 +0000 (00:23 +0100)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 22 Feb 2011 10:02:47 +0000 (11:02 +0100)
* 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>
drivers/power/bq27x00_battery.c

index 003be5f1c785d34901b26c78f2442310e6d6a5eb..b44555f1b6336f1e440e9c1381d0f444657b134a 100644 (file)
@@ -56,7 +56,7 @@
 #define BQ27000_FLAG_CHGS              BIT(7)
 #define BQ27000_FLAG_FC                        BIT(5)
 
-#define BQ27500_REG_SOC                        0x2c
+#define BQ27500_REG_SOC                        0x2C
 #define BQ27500_REG_DCAP               0x3C /* Design capacity */
 #define BQ27500_FLAG_DSC               BIT(0)
 #define BQ27500_FLAG_FC                        BIT(9)
@@ -321,7 +321,7 @@ static int bq27x00_battery_temperature(struct bq27x00_device_info *di,
 }
 
 /*
- * Return the battery average current
+ * Return the battery average current in µA
  * Note that current can be negative signed as well
  * Or 0 if something fails.
  */