scmi-hwmon.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | scmi-hwmon.c (0ce637a5469139f901c3047e507afcf17bd00f43) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * System Control and Management Interface(SCMI) based hwmon sensor driver 4 * 5 * Copyright (C) 2018-2021 ARM Ltd. 6 * Sudeep Holla <sudeep.holla@arm.com> 7 */ 8 --- 127 unchanged lines hidden (view full) --- 136 .info = NULL, 137}; 138 139static int scmi_hwmon_thermal_get_temp(struct thermal_zone_device *tz, 140 int *temp) 141{ 142 int ret; 143 long value; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * System Control and Management Interface(SCMI) based hwmon sensor driver 4 * 5 * Copyright (C) 2018-2021 ARM Ltd. 6 * Sudeep Holla <sudeep.holla@arm.com> 7 */ 8 --- 127 unchanged lines hidden (view full) --- 136 .info = NULL, 137}; 138 139static int scmi_hwmon_thermal_get_temp(struct thermal_zone_device *tz, 140 int *temp) 141{ 142 int ret; 143 long value; |
144 struct scmi_thermal_sensor *th_sensor = tz->devdata; | 144 struct scmi_thermal_sensor *th_sensor = thermal_zone_device_priv(tz); |
145 146 ret = scmi_hwmon_read_scaled_value(th_sensor->ph, th_sensor->info, 147 &value); 148 if (!ret) 149 *temp = value; 150 151 return ret; 152} --- 222 unchanged lines hidden --- | 145 146 ret = scmi_hwmon_read_scaled_value(th_sensor->ph, th_sensor->info, 147 &value); 148 if (!ret) 149 *temp = value; 150 151 return ret; 152} --- 222 unchanged lines hidden --- |