root/include/linux/power/generic-adc-battery.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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  * @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.
  18  */
  19 struct gab_platform_data {
  20         struct power_supply_info battery_info;
  21         int     (*cal_charge)(long value);
  22         int     gpio_charge_finished;
  23         bool    gpio_inverted;
  24         int     jitter_delay;
  25 };
  26 
  27 #endif /* GENERIC_ADC_BATTERY_H */

/* [<][>][^][v][top][bottom][index][help] */