aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorHolger Freyther <zecke@openmoko.org>2008-11-19 17:09:53 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:53 +0000
commit03b6ebd99640931399054d75f770aa8954ed7088 (patch)
tree7eba778139644a70fafbaab56b55339a3a59c5ef /drivers/power
parent60ba5c03c66f3348f96461cbf831968bee21f702 (diff)
From ae3f72fc608fcd0a98a980a335ac4dc7ad95b221 Mon Sep 17 00:00:00 2001
Subject: [PATCH] [bq27000] Make the checkpatch.pl happy
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/bq27000_battery.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
index aee8018a50a..652a9fa9708 100644
--- a/drivers/power/bq27000_battery.c
+++ b/drivers/power/bq27000_battery.c
@@ -179,7 +179,9 @@ static int bq27000_battery_get_property(struct power_supply *psy,
v = hdq_read16(di, BQ27000_AI_L);
if (v < 0)
return v;
- if (v < 2) { /* no real activity on the battery */
+
+ /* no real activity on the battery */
+ if (v < 2) {
if (!hdq_read16(di, BQ27000_TTF_L))
val->intval = POWER_SUPPLY_STATUS_FULL;
else
@@ -199,7 +201,8 @@ static int bq27000_battery_get_property(struct power_supply *psy,
v = hdq_read16(di, BQ27000_VOLT_L);
if (v < 0)
return v;
- val->intval = v * 1000; /* mV -> uV */
+ /* mV -> uV */
+ val->intval = v * 1000;
break;
case POWER_SUPPLY_PROP_CURRENT_NOW:
v = (di->hdq_read)(BQ27000_FLAGS);