aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-05-24 21:29:14 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-05-25 18:28:06 +0200
commita6f1e10d879adca8f3f0ec3d8a2c3eaf0882e03f (patch)
treeba779069d5cbaf44842067b49e68ac05eae37a15
parentd63ade17a0274b3b3f662fa381c4bb496bbf2ca9 (diff)
Use bq27x00 battery driver instead of bq27000.
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index e8ac76bd17e..ba4ee134f30 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -104,7 +104,7 @@
#include <mach/gta02-fiq.h>
#include <linux/hdq.h>
-#include <linux/bq27000_battery.h>
+#include <linux/bq27x00_battery.h>
#include <linux/platform_battery.h>
#include <linux/jbt6k74.h>
@@ -891,14 +891,13 @@ static struct platform_device gta02_pwm_leds_device = {
/* BQ27000 Battery */
+static int gta02_hdq_read(struct device *dev, unsigned int reg)
+{
+ return hdq_read(reg);
+}
+
struct bq27000_platform_data bq27000_pdata = {
- .name = "battery",
- .rsense_mohms = 20,
- .hdq_read = hdq_read,
- .hdq_write = hdq_write,
- .hdq_initialized = hdq_initialized,
- .get_charger_online_status = gta02_get_charger_online_status,
- .get_charger_active_status = gta02_get_charger_active_status
+ .read = gta02_hdq_read,
};
struct platform_device bq27000_battery_device = {