mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:36:39 +07:00
4e9687d9c8
This patch adds generic battery driver for wm97xx chips. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
27 lines
483 B
C
27 lines
483 B
C
#ifndef _LINUX_WM97XX_BAT_H
|
|
#define _LINUX_WM97XX_BAT_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#ifdef CONFIG_BATTERY_WM97XX
|
|
void __init wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
|
|
#else
|
|
static inline void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data) {}
|
|
#endif
|
|
|
|
#endif
|