OSDN Git Service

thermal/drivers/db8500: Use driver dev instead of tz->device
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 7 Mar 2023 13:37:28 +0000 (14:37 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 1 Apr 2023 18:51:45 +0000 (20:51 +0200)
commit311526b7e38fb35ab6dcdec290babda3d2b4f8d3
treeeac59e443e4dafc0814dcc16ffff5e3cf297c2b9
parent32a7a02117de01199ce15ec121ac7af417c340eb
thermal/drivers/db8500: Use driver dev instead of tz->device

The db8500 driver uses the thermal zone device instead of the device
attached to it. In order to prevent the drivers to access the thermal
zone device structure, replace the thermal zone device by the driver
to show the debug message.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230307133735.90772-5-daniel.lezcano@linaro.org
drivers/thermal/db8500_thermal.c