1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012, Anish Kumar <anish198519851985@gmail.com>
4  */
5 
6 #ifndef GENERIC_ADC_BATTERY_H
7 #define GENERIC_ADC_BATTERY_H
8 
9 /**
10  * struct gab_platform_data - platform_data for generic adc iio battery driver.
11  * @battery_info:         recommended structure to specify static power supply
12  *			   parameters
13  * @cal_charge:           calculate charge level.
14  * @jitter_delay:         delay required after the interrupt to check battery
15  *			  status.Default set is 10ms.
16  */
17 struct gab_platform_data {
18 	struct power_supply_info battery_info;
19 	int	(*cal_charge)(long value);
20 	int     jitter_delay;
21 };
22 
23 #endif /* GENERIC_ADC_BATTERY_H */
24