From b902a027c2651ece42e40658ea5775dddc0c592a Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Mon, 23 Feb 2009 01:22:26 +0000 Subject: Move bq27000 data structures It's always a good idea to first define the data structures you use. ;-) Signed-off-by: Sven Rebhan --- arch/arm/mach-s3c2442/mach-gta02.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index 9eaf0b2fa74..26910a78721 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -714,6 +714,25 @@ static void mangle_pmu_pdata_by_system_rev(void) } #ifdef CONFIG_HDQ_GPIO_BITBANG +/* BQ27000 Battery */ + +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 +}; + +struct platform_device bq27000_battery_device = { + .name = "bq27000-battery", + .dev = { + .platform_data = &bq27000_pdata, + }, +}; + /* HDQ */ static void gta02_hdq_attach_child_devices(struct device *parent_device) @@ -778,25 +797,6 @@ struct platform_device gta02_hdq_device = { .platform_data = >a02_hdq_platform_data, }, }; - -/* BQ27000 Battery */ - -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 -}; - -struct platform_device bq27000_battery_device = { - .name = "bq27000-battery", - .dev = { - .platform_data = &bq27000_pdata, - }, -}; #endif -- cgit v1.2.3