Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dtwl4030_madc_battery.c28 struct iio_channel *channel_ichg; member
57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status()
67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current()
204 twl4030_madc_bat->channel_ichg = iio_channel_get(&pdev->dev, "ichg"); in twl4030_madc_battery_probe()
205 if (IS_ERR(twl4030_madc_bat->channel_ichg)) { in twl4030_madc_battery_probe()
206 ret = PTR_ERR(twl4030_madc_bat->channel_ichg); in twl4030_madc_battery_probe()
240 iio_channel_release(twl4030_madc_bat->channel_ichg); in twl4030_madc_battery_probe()
254 iio_channel_release(bat->channel_ichg); in twl4030_madc_battery_remove()