[PATCH 4/6] various janitorial work on the pcf50633.c

Holger Freyther zecke at openmoko.org
Fri May 9 23:35:00 CEST 2008


From 2ce5e12156c3aaf4574b736bbaf103f40c593d14 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Thu, 8 May 2008 23:15:46 +0200
Subject: [PATCH] [pcf50633] Assume that all gta02's have a battery with 
coulumb counter
     For the gta02 and the bq27000 battery it does not make sense to use the
     ADC to get the current voltage. Under the assumption that all mass
     production gta02's have such batteries it does not make any sense to
     forward this value to APM.

Signed-Off-By: Holger Freyther <zecke at openmoko.org>
---
 drivers/i2c/chips/pcf50633.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 6c4a255..0f822cc 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -1786,16 +1786,15 @@ static int pcf50633_detect(struct i2c_adapter 
*adapter, int address, int kind)
 		backlight_update_status(data->backlight);
 	}
 
-	apm_get_power_status = pcf50633_get_power_status;
 
-#ifdef CONFIG_MACH_NEO1973_GTA02
 	if (machine_is_neo1973_gta02()) {
 		gta01_pm_gps_dev.dev.parent = &new_client->dev;
 		gta01_pm_bt_dev.dev.parent = &new_client->dev;
 		platform_device_register(&gta01_pm_bt_dev);
 		platform_device_register(&gta01_pm_gps_dev);
+	} else {
+		apm_get_power_status = pcf50633_get_power_status;
 	}
-#endif
 
 	return 0;
 exit_rtc:
-- 
1.5.4.3






More information about the openmoko-kernel mailing list