[PATCH 3/3] PMU and Battery interaction in regard to kobject uevent
Holger Freyther
zecke at openmoko.org
Tue Jun 3 11:24:00 CEST 2008
From bdcca2715d272052d03e3fba3032d0387f3e0445 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Thu, 29 May 2008 12:12:20 +0200
Subject: [PATCH] [bq27000] Make the checkpatch.pl happy
---
drivers/power/bq27000_battery.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
index 34e3481..bef51d0 100644
--- a/drivers/power/bq27000_battery.c
+++ b/drivers/power/bq27000_battery.c
@@ -189,7 +189,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
@@ -209,7 +211,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);
--
1.5.4.3
More information about the openmoko-kernel
mailing list