Searched refs:adc_bat (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/power/supply/ |
H A D | generic-adc-battery.c | 60 struct gab *adc_bat = to_generic_bat(psy); in gab_ext_power_changed() local 62 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed() 80 static bool gab_charge_finished(struct gab *adc_bat) in gab_charge_finished() argument 82 if (!adc_bat->charge_finished) in gab_charge_finished() 84 return gpiod_get_value(adc_bat->charge_finished); in gab_charge_finished() 87 static int gab_read_channel(struct gab *adc_bat, enum gab_chan_type channel, in gab_read_channel() argument 92 ret = iio_read_channel_processed(adc_bat->channel[channel], result); in gab_read_channel() 94 dev_err(&adc_bat->psy->dev, "read channel error: %d\n", ret); in gab_read_channel() 104 struct gab *adc_bat = to_generic_bat(psy); in gab_get_property() local 108 val->intval = adc_bat->status; in gab_get_property() [all …]
|
H A D | collie_battery.c | 42 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,
|