[ar71xx] fix GPIO function select bit definitions (based on a patch by Jonas <jmajau...
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch
1 From 316903324da99ec34308d740b1d8851690504041 Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <zecke@openmoko.org>
3 Date: Fri, 25 Jul 2008 23:06:17 +0100
4 Subject: [PATCH] From ae3f72fc608fcd0a98a980a335ac4dc7ad95b221 Mon Sep 17 00:00:00 2001
5 Subject: [PATCH] [bq27000] Make the checkpatch.pl happy
6
7 ---
8 drivers/power/bq27000_battery.c | 7 +++++--
9 1 files changed, 5 insertions(+), 2 deletions(-)
10
11 diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
12 index aee8018..652a9fa 100644
13 --- a/drivers/power/bq27000_battery.c
14 +++ b/drivers/power/bq27000_battery.c
15 @@ -179,7 +179,9 @@ static int bq27000_battery_get_property(struct power_supply *psy,
16 v = hdq_read16(di, BQ27000_AI_L);
17 if (v < 0)
18 return v;
19 - if (v < 2) { /* no real activity on the battery */
20 +
21 + /* no real activity on the battery */
22 + if (v < 2) {
23 if (!hdq_read16(di, BQ27000_TTF_L))
24 val->intval = POWER_SUPPLY_STATUS_FULL;
25 else
26 @@ -199,7 +201,8 @@ static int bq27000_battery_get_property(struct power_supply *psy,
27 v = hdq_read16(di, BQ27000_VOLT_L);
28 if (v < 0)
29 return v;
30 - val->intval = v * 1000; /* mV -> uV */
31 + /* mV -> uV */
32 + val->intval = v * 1000;
33 break;
34 case POWER_SUPPLY_PROP_CURRENT_NOW:
35 v = (di->hdq_read)(BQ27000_FLAGS);
36 --
37 1.5.6.3
38
This page took 0.053152 seconds and 5 git commands to generate.