Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Drx51_battery.c20 struct iio_channel *channel_temp; member
97 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()
H A Dtwl4030_madc_battery.c27 struct iio_channel *channel_temp; member
72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp()
198 twl4030_madc_bat->channel_temp = iio_channel_get(&pdev->dev, "temp"); in twl4030_madc_battery_probe()
199 if (IS_ERR(twl4030_madc_bat->channel_temp)) { in twl4030_madc_battery_probe()
200 ret = PTR_ERR(twl4030_madc_bat->channel_temp); in twl4030_madc_battery_probe()
242 iio_channel_release(twl4030_madc_bat->channel_temp); in twl4030_madc_battery_probe()
255 iio_channel_release(bat->channel_temp); in twl4030_madc_battery_remove()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dphy.c2328 rate_section = -1, channel_temp = -1; in _rtl8812ae_phy_get_txpower_limit() local
2433 channel_temp = _rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt(hw, in _rtl8812ae_phy_get_txpower_limit()
2436 channel_temp = _rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt(hw, in _rtl8812ae_phy_get_txpower_limit()
2443 rate_section == -1 || channel_temp == -1) { in _rtl8812ae_phy_get_txpower_limit()
2447 rate_section, channel_temp); in _rtl8812ae_phy_get_txpower_limit()
2454 chnl = channel_temp; in _rtl8812ae_phy_get_txpower_limit()