[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>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/pda_power.h>
|
||||
#include <linux/power_supply.h>
|
||||
#include <linux/wm97xx_batt.h>
|
||||
#include <linux/wm97xx.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/usb/gpio_vbus.h>
|
||||
#include <linux/regulator/max1586.h>
|
||||
@@ -636,7 +636,7 @@ static struct platform_device power_dev = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct wm97xx_batt_info mioa701_battery_data = {
|
||||
static struct wm97xx_batt_pdata mioa701_battery_data = {
|
||||
.batt_aux = WM97XX_AUX_ID1,
|
||||
.temp_aux = -1,
|
||||
.charge_gpio = -1,
|
||||
@@ -648,6 +648,10 @@ static struct wm97xx_batt_info mioa701_battery_data = {
|
||||
.batt_name = "mioa701_battery",
|
||||
};
|
||||
|
||||
static struct wm97xx_pdata mioa701_wm97xx_pdata = {
|
||||
.batt_pdata = &mioa701_battery_data,
|
||||
};
|
||||
|
||||
/*
|
||||
* Voltage regulation
|
||||
*/
|
||||
@@ -716,6 +720,7 @@ struct i2c_pxa_platform_data i2c_pdata = {
|
||||
|
||||
static pxa2xx_audio_ops_t mioa701_ac97_info = {
|
||||
.reset_gpio = 95,
|
||||
.codec_pdata = { &mioa701_wm97xx_pdata, },
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -794,7 +799,6 @@ static void __init mioa701_machine_init(void)
|
||||
set_pxa_fb_info(&mioa701_pxafb_info);
|
||||
pxa_set_mci_info(&mioa701_mci_info);
|
||||
pxa_set_keypad_info(&mioa701_keypad_info);
|
||||
wm97xx_bat_set_pdata(&mioa701_battery_data);
|
||||
pxa_set_udc_info(&mioa701_udc_info);
|
||||
pxa_set_ac97_info(&mioa701_ac97_info);
|
||||
pm_power_off = mioa701_poweroff;
|
||||
|
Reference in New Issue
Block a user