Message ID | 20230301201446.3713334-6-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Commit | 4216e815321580b24dcb972a078ae3f0c808a464 |
Headers | show |
Series | [v5,01/18] thermal/core: Add a thermal zone 'devdata' accessor | expand |
diff --git a/drivers/thermal/thermal_helpers.c b/drivers/thermal/thermal_helpers.c index 0f648131b0b5..9558339f5633 100644 --- a/drivers/thermal/thermal_helpers.c +++ b/drivers/thermal/thermal_helpers.c @@ -107,6 +107,9 @@ int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) *temp = tz->emul_temperature; } + if (ret) + dev_dbg(&tz->device, "Failed to get temperature: %d\n", ret); + return ret; }