]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (tmp421) Check error when loading label from dt
authorBruno Thomsen <bruno.thomsen@gmail.com>
Tue, 11 Nov 2025 14:44:05 +0000 (15:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 13 Nov 2025 20:23:14 +0000 (12:23 -0800)
commit638196d43bd3c8548c6576d26475e071c023a9b3
tree915f23ec162f09df4f3e671eaa985b608676ef6e
parent71a117d28f87884893f0398fedfdc989d76314ce
hwmon: (tmp421) Check error when loading label from dt

Add error checking when loading temperature channel label defined
in device tree. Handling of error from of_property_read_string()
is inspired by lm90 driver and therefor contain same error string.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20251111144406.7489-1-bruno.thomsen@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c