linux/drivers/thermal/broadcom
Yan Zhen b779bbb9df thermal/drivers/brcmstb_thermal: Simplify with dev_err_probe()
dev_err_probe() is used to log an error message during the probe process
of a device.

It can simplify the error path and unify a message template.

Using this helper is totally fine even if err is known to never
be -EPROBE_DEFER.

The benefit compared to a normal dev_err() is the standardized format
of the error code, it being emitted symbolically and the fact that
the error code is returned which allows more compact error paths.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Link: https://lore.kernel.org/r/20240830103918.501234-1-yanzhen@vivo.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2024-09-02 13:09:49 +02:00
..
bcm2711_thermal.c thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
bcm2835_thermal.c thermal: broadcom: Use thermal_zone_get_crit_temp() in bcm2835_thermal_probe() 2024-08-02 13:32:09 +02:00
brcmstb_thermal.c thermal/drivers/brcmstb_thermal: Simplify with dev_err_probe() 2024-09-02 13:09:49 +02:00
Kconfig thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
Makefile thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
ns-thermal.c thermal: ns: Convert to platform remove callback returning void 2023-09-29 12:34:16 +02:00
sr-thermal.c thermal/drivers/broadcom/sr-thermal: Removed call to platform_set_drvdata() 2023-08-16 12:17:19 +02:00