hwmon: (sch5627) Split sch5627_update_device()
authorArmin Wolf <W_Armin@gmx.de>
Sun, 11 Apr 2021 16:42:25 +0000 (18:42 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commit790ac8fab116b31e0ff389f8a1c26fefe09000fa
tree94549c51d850ce8c7748f9802908d0edde80a968
parente7e0b466a8489288795e3bb0f93acde5b2e6ffa2
hwmon: (sch5627) Split sch5627_update_device()

An error in sch5627_update_device() could cause sch5627_read()
to fail even if the error did not affect the target sensor type.
Split sch5627_update_device() to prevent that.

Tested on a Fujitsu Esprimo P720.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210411164225.11967-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch5627.c