Searched refs:channel_temp (Results 1 – 3 of 3) sorted by relevance
20 struct iio_channel *channel_temp; member97 int raw = rx51_battery_read_adc(di->channel_temp); in rx51_battery_read_temperature()212 di->channel_temp = iio_channel_get(di->dev, "temp"); in rx51_battery_probe()213 if (IS_ERR(di->channel_temp)) { in rx51_battery_probe()214 ret = PTR_ERR(di->channel_temp); in rx51_battery_probe()243 iio_channel_release(di->channel_temp); in rx51_battery_probe()257 iio_channel_release(di->channel_temp); in rx51_battery_remove()
27 struct iio_channel *channel_temp; member72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp()204 twl4030_madc_bat->channel_temp = iio_channel_get(&pdev->dev, "temp"); in twl4030_madc_battery_probe()205 if (IS_ERR(twl4030_madc_bat->channel_temp)) { in twl4030_madc_battery_probe()206 ret = PTR_ERR(twl4030_madc_bat->channel_temp); in twl4030_madc_battery_probe()248 iio_channel_release(twl4030_madc_bat->channel_temp); in twl4030_madc_battery_probe()261 iio_channel_release(bat->channel_temp); in twl4030_madc_battery_remove()
2339 rate_section = -1, channel_temp = -1; in _rtl8812ae_phy_get_txpower_limit() local2444 channel_temp = _rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt(hw, in _rtl8812ae_phy_get_txpower_limit()2447 channel_temp = _rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt(hw, in _rtl8812ae_phy_get_txpower_limit()2454 rate_section == -1 || channel_temp == -1) { in _rtl8812ae_phy_get_txpower_limit()2458 rate_section, channel_temp); in _rtl8812ae_phy_get_txpower_limit()2465 chnl = channel_temp; in _rtl8812ae_phy_get_txpower_limit()