Re: [PATCH] thermal/core: Check get_temp ops is present when registering a tz

From: Daniel Lezcano
Date: Wed Dec 13 2023 - 08:31:31 EST


On 13/12/2023 13:46, Rafael J. Wysocki wrote:
On Wed, Dec 13, 2023 at 1:13 PM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> wrote:

Initially the check against the get_temp ops in the
thermal_zone_device_update() was put in there in order to catch
drivers not providing this method.

Instead of checking again and again the function if the ops exists in
the update function, let's do the check at registration time, so it is
checked one time and for all.

Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

Looks good. Do you want me to pick it up?

Yes please

Thanks


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog