diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
commit | b9dfb81f2aa45be745a8aed9684076210aed4152 (patch) | |
tree | aceadd7f37096911a29c929988cbcf7c964a1c0b /target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch | |
parent | 4571721ec22de116ad9998657e0a3c12da6405fb (diff) | |
download | upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.gz upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.bz2 upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.zip |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
SVN-Revision: 13609
Diffstat (limited to 'target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch b/target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch new file mode 100755 index 0000000000..e71add549a --- /dev/null +++ b/target/linux/s3c24xx/patches/0196-From-ae3f72fc608fcd0a98a980a335ac4dc7ad95b221-Mon-Se.patch @@ -0,0 +1,38 @@ +From 316903324da99ec34308d740b1d8851690504041 Mon Sep 17 00:00:00 2001 +From: Holger Freyther <zecke@openmoko.org> +Date: Fri, 25 Jul 2008 23:06:17 +0100 +Subject: [PATCH] From ae3f72fc608fcd0a98a980a335ac4dc7ad95b221 Mon Sep 17 00:00:00 2001 + 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 aee8018..652a9fa 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); +-- +1.5.6.3 + |