Searched refs:adc_bat (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/power/supply/ |
D | generic-adc-battery.c | 64 struct gab *adc_bat = to_generic_bat(psy); in gab_ext_power_changed() local 66 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed() 92 static bool gab_charge_finished(struct gab *adc_bat) in gab_charge_finished() argument 94 struct gab_platform_data *pdata = adc_bat->pdata; in gab_charge_finished() 103 static int gab_get_status(struct gab *adc_bat) in gab_get_status() argument 105 struct gab_platform_data *pdata = adc_bat->pdata; in gab_get_status() 109 if (adc_bat->level == bat_info->charge_full_design) in gab_get_status() 111 return adc_bat->status; in gab_get_status() 130 static int read_channel(struct gab *adc_bat, enum power_supply_property psp, in read_channel() argument 137 ret = iio_read_channel_processed(adc_bat->channel[chan_index], in read_channel() [all …]
|
D | tosa_battery.c | 37 int adc_bat; member 54 if (bat->gpio_bat < 0 || 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,
|
D | collie_battery.c | 40 int adc_bat; member 56 if (bat->gpio_bat < 0 || bat->adc_bat < 0) in collie_read_bat() 62 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); in collie_read_bat() 239 .adc_bat = UCB_ADC_INP_AD1, 269 .adc_bat = UCB_ADC_INP_AD1,
|