Skip to content

Commit

Permalink
bq27x00: Minor cleanups
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Pali Rohár authored and Lars-Peter Clausen committed Feb 22, 2011
1 parent c1b9ab6 commit bf7d414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/bq27x00_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit bf7d414

Please sign in to comment.