1 /* SPDX-License-Identifier: GPL-2.0-only */
6 #ifndef GENERIC_ADC_BATTERY_H
7 #define GENERIC_ADC_BATTERY_H
10 * struct gab_platform_data - platform_data for generic adc iio battery driver.
11 * @battery_info: recommended structure to specify static power supply
13 * @cal_charge: calculate charge level.
14 * @gpio_charge_finished: gpio for the charger.
15 * @gpio_inverted: Should be 1 if the GPIO is active low otherwise 0
16 * @jitter_delay: delay required after the interrupt to check battery
17 * status.Default set is 10ms.
19 struct gab_platform_data {
20 struct power_supply_info battery_info;
21 int (*cal_charge)(long value);
22 int gpio_charge_finished;
27 #endif /* GENERIC_ADC_BATTERY_H */