Home
last modified time | relevance | path

Searched refs:adc_bat (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/power/supply/
Dgeneric-adc-battery.c65 struct gab *adc_bat = to_generic_bat(psy); in gab_ext_power_changed() local
67 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed()
93 static bool gab_charge_finished(struct gab *adc_bat) in gab_charge_finished() argument
95 if (!adc_bat->charge_finished) in gab_charge_finished()
97 return gpiod_get_value(adc_bat->charge_finished); in gab_charge_finished()
100 static int gab_get_status(struct gab *adc_bat) in gab_get_status() argument
102 struct gab_platform_data *pdata = adc_bat->pdata; in gab_get_status()
106 if (adc_bat->level == bat_info->charge_full_design) in gab_get_status()
108 return adc_bat->status; in gab_get_status()
127 static int read_channel(struct gab *adc_bat, enum power_supply_property psp, in read_channel() argument
[all …]
Dtosa_battery.c36 int adc_bat; member
54 if (!bat->gpiod_bat || bat->adc_bat < 0) in tosa_read_bat()
61 bat->adc_bat); in tosa_read_bat()
260 .adc_bat = WM97XX_AUX_ID3,
282 .adc_bat = WM97XX_AUX_ID3,
303 .adc_bat = WM97XX_AUX_ID4,
Dcollie_battery.c42 int adc_bat; member
58 if (!bat->gpio_bat || bat->adc_bat < 0) in collie_read_bat()
64 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); in collie_read_bat()
241 .adc_bat = UCB_ADC_INP_AD1,
271 .adc_bat = UCB_ADC_INP_AD1,