Searched refs:channel_vbat (Results 1 – 2 of 2) sorted by relevance
22 struct iio_channel *channel_vbat; member43 int voltage = rx51_battery_read_adc(di->channel_vbat); in rx51_battery_read_voltage()224 di->channel_vbat = iio_channel_get(di->dev, "vbat"); in rx51_battery_probe()225 if (IS_ERR(di->channel_vbat)) { in rx51_battery_probe()226 ret = PTR_ERR(di->channel_vbat); in rx51_battery_probe()239 iio_channel_release(di->channel_vbat); in rx51_battery_probe()255 iio_channel_release(di->channel_vbat); in rx51_battery_remove()
29 struct iio_channel *channel_vbat; member62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage()216 twl4030_madc_bat->channel_vbat = iio_channel_get(&pdev->dev, "vbat"); in twl4030_madc_battery_probe()217 if (IS_ERR(twl4030_madc_bat->channel_vbat)) { in twl4030_madc_battery_probe()218 ret = PTR_ERR(twl4030_madc_bat->channel_vbat); in twl4030_madc_battery_probe()244 iio_channel_release(twl4030_madc_bat->channel_vbat); in twl4030_madc_battery_probe()259 iio_channel_release(bat->channel_vbat); in twl4030_madc_battery_remove()