![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/include/linux/power/ |
/* * Copyright (C) 2012, Anish Kumar <[email protected]> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef GENERIC_ADC_BATTERY_H #define GENERIC_ADC_BATTERY_H /** * struct gab_platform_data - platform_data for generic adc iio battery driver. * @battery_info: recommended structure to specify static power supply * parameters * @cal_charge: calculate charge level. * @gpio_charge_finished: gpio for the charger. * @gpio_inverted: Should be 1 if the GPIO is active low otherwise 0 * @jitter_delay: delay required after the interrupt to check battery * status.Default set is 10ms. */ struct gab_platform_data { struct power_supply_info battery_info; int (*cal_charge)(long value); int gpio_charge_finished; bool gpio_inverted; int jitter_delay; }; #endif /* GENERIC_ADC_BATTERY_H */