initialize the url field for packages
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch
1 From 32d41ab91e5844ad6df1eea353c61a8fefc0c81e Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <ich@tamarin.(none)>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] [pcf50633] Assume that all gta02's have a battery with coulumb counter
5 For the gta02 and the bq27000 battery it does not make sense to use the
6 ADC to get the current voltage. Under the assumption that all mass
7 production gta02's have such batteries it does not make any sense to
8 forward this value to APM.
9
10 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
11 ---
12 drivers/i2c/chips/pcf50633.c | 5 ++---
13 1 files changed, 2 insertions(+), 3 deletions(-)
14
15 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
16 index b354a9c..66ca16f 100644
17 --- a/drivers/i2c/chips/pcf50633.c
18 +++ b/drivers/i2c/chips/pcf50633.c
19 @@ -1797,16 +1797,15 @@ static int pcf50633_detect(struct i2c_adapter *adapter, int address, int kind)
20 backlight_update_status(data->backlight);
21 }
22
23 - apm_get_power_status = pcf50633_get_power_status;
24
25 -#ifdef CONFIG_MACH_NEO1973_GTA02
26 if (machine_is_neo1973_gta02()) {
27 gta01_pm_gps_dev.dev.parent = &new_client->dev;
28 gta01_pm_bt_dev.dev.parent = &new_client->dev;
29 platform_device_register(&gta01_pm_bt_dev);
30 platform_device_register(&gta01_pm_gps_dev);
31 + } else {
32 + apm_get_power_status = pcf50633_get_power_status;
33 }
34 -#endif
35
36 return 0;
37 exit_rtc:
38 --
39 1.5.6.5
40
This page took 0.053671 seconds and 5 git commands to generate.