Searched refs:madc_read (Results 1 – 1 of 1) sorted by relevance
45 static int madc_read(struct iio_channel *channel) in madc_read() function57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status()62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage()67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current()72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp()