linux-next/drivers/thermal/mediatek
Minjie Du 19ad9f2975 thermal/drivers/mediatek/lvts: Fix parameter check in lvts_debugfs_init()
The documentation says "If an error occurs, ERR_PTR(-ERROR) will be
returned" but the current code checks against a NULL pointer returned.

Fix this by checking if IS_ERR().

Signed-off-by: Minjie Du <duminjie@vivo.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230713042413.2519-1-duminjie@vivo.com
2023-08-16 09:54:32 +02:00
..
auxadc_thermal.c thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
Kconfig thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver 2023-02-15 17:28:42 +01:00
lvts_thermal.c thermal/drivers/mediatek/lvts: Fix parameter check in lvts_debugfs_init() 2023-08-16 09:54:32 +02:00
Makefile thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver 2023-02-15 17:28:42 +01:00