You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
wm97xx_battery: Use platform_data
This patch converts the wm97xx-battery driver to use platform_data supplied by ac97 bus. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
This commit is contained in:
committed by
Anton Vorontsov
parent
32bb0e0c77
commit
b8bdc1d0cf
@@ -3,22 +3,12 @@
|
||||
|
||||
#include <linux/wm97xx.h>
|
||||
|
||||
struct wm97xx_batt_info {
|
||||
int batt_aux;
|
||||
int temp_aux;
|
||||
int charge_gpio;
|
||||
int min_voltage;
|
||||
int max_voltage;
|
||||
int batt_div;
|
||||
int batt_mult;
|
||||
int temp_div;
|
||||
int temp_mult;
|
||||
int batt_tech;
|
||||
char *batt_name;
|
||||
};
|
||||
#warning This file will be removed soon, use wm97xx.h instead!
|
||||
|
||||
#define wm97xx_batt_info wm97xx_batt_pdata
|
||||
|
||||
#ifdef CONFIG_BATTERY_WM97XX
|
||||
void __init wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
|
||||
void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
|
||||
#else
|
||||
static inline void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data) {}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user