aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmt5.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-06-03 21:07:33 -0400
committerEric Miao <eric.y.miao@gmail.com>2010-08-05 02:32:14 -0400
commit241cf473114fedfaeb320aa27a339c8a1e30393c (patch)
treef3f9e3f9d49c7ae721ffc45a8952b94cb684970e /arch/arm/mach-pxa/palmt5.c
parent8499ded85927ca84a246a6502018087e19b7df2c (diff)
[ARM] pxa: fix all devices using wm97xx_batt.h
This file is scheduled for removal, therefore fix all devices that use this file to use the suggested wm97xx.h and pass platform data properly. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Tomas Cech <sleep_walker@suse.cz> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmt5.c')
-rw-r--r--arch/arm/mach-pxa/palmt5.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c
index 5305a3993e69..0b36d7ddff25 100644
--- a/arch/arm/mach-pxa/palmt5.c
+++ b/arch/arm/mach-pxa/palmt5.c
@@ -24,7 +24,7 @@
24#include <linux/pda_power.h> 24#include <linux/pda_power.h>
25#include <linux/pwm_backlight.h> 25#include <linux/pwm_backlight.h>
26#include <linux/gpio.h> 26#include <linux/gpio.h>
27#include <linux/wm97xx_batt.h> 27#include <linux/wm97xx.h>
28#include <linux/power_supply.h> 28#include <linux/power_supply.h>
29#include <linux/usb/gpio_vbus.h> 29#include <linux/usb/gpio_vbus.h>
30 30
@@ -298,9 +298,9 @@ static struct platform_device power_supply = {
298}; 298};
299 299
300/****************************************************************************** 300/******************************************************************************
301 * WM97xx battery 301 * WM97xx audio, battery
302 ******************************************************************************/ 302 ******************************************************************************/
303static struct wm97xx_batt_info wm97xx_batt_pdata = { 303static struct wm97xx_batt_pdata palmt5_batt_pdata = {
304 .batt_aux = WM97XX_AUX_ID3, 304 .batt_aux = WM97XX_AUX_ID3,
305 .temp_aux = WM97XX_AUX_ID2, 305 .temp_aux = WM97XX_AUX_ID2,
306 .charge_gpio = -1, 306 .charge_gpio = -1,
@@ -314,15 +314,17 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = {
314 .batt_name = "main-batt", 314 .batt_name = "main-batt",
315}; 315};
316 316
317/****************************************************************************** 317static struct wm97xx_pdata palmt5_wm97xx_pdata = {
318 * aSoC audio 318 .batt_pdata = &palmt5_batt_pdata,
319 ******************************************************************************/
320static struct palm27x_asoc_info palmt5_asoc_pdata = {
321 .jack_gpio = GPIO_NR_PALMT5_EARPHONE_DETECT,
322}; 319};
323 320
324static pxa2xx_audio_ops_t palmt5_ac97_pdata = { 321static pxa2xx_audio_ops_t palmt5_ac97_pdata = {
325 .reset_gpio = 95, 322 .reset_gpio = 95,
323 .codec_pdata = { &palmt5_wm97xx_pdata, },
324};
325
326static struct palm27x_asoc_info palmt5_asoc_pdata = {
327 .jack_gpio = GPIO_NR_PALMT5_EARPHONE_DETECT,
326}; 328};
327 329
328static struct platform_device palmt5_asoc = { 330static struct platform_device palmt5_asoc = {
@@ -411,7 +413,6 @@ static void __init palmt5_init(void)
411 pxa_set_ac97_info(&palmt5_ac97_pdata); 413 pxa_set_ac97_info(&palmt5_ac97_pdata);
412 pxa_set_ficp_info(&palmt5_ficp_platform_data); 414 pxa_set_ficp_info(&palmt5_ficp_platform_data);
413 pxa_set_keypad_info(&palmt5_keypad_platform_data); 415 pxa_set_keypad_info(&palmt5_keypad_platform_data);
414 wm97xx_bat_set_pdata(&wm97xx_batt_pdata);
415 416
416 platform_add_devices(devices, ARRAY_SIZE(devices)); 417 platform_add_devices(devices, ARRAY_SIZE(devices));
417} 418}