Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Dscmi-hwmon.c144 struct scmi_thermal_sensor *th_sensor = thermal_zone_device_priv(tz); in scmi_hwmon_thermal_get_temp() local
146 ret = scmi_hwmon_read_scaled_value(th_sensor->ph, th_sensor->info, in scmi_hwmon_thermal_get_temp()
196 struct scmi_thermal_sensor *th_sensor; in scmi_thermal_sensor_register() local
199 th_sensor = devm_kzalloc(dev, sizeof(*th_sensor), GFP_KERNEL); in scmi_thermal_sensor_register()
200 if (!th_sensor) in scmi_thermal_sensor_register()
203 th_sensor->ph = ph; in scmi_thermal_sensor_register()
204 th_sensor->info = sensor; in scmi_thermal_sensor_register()
211 tzd = devm_thermal_of_zone_register(dev, th_sensor->info->id, th_sensor, in scmi_thermal_sensor_register()
214 devm_kfree(dev, th_sensor); in scmi_thermal_sensor_register()