]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 13 Apr 2021 16:39:21 +0000 (09:39 -0700)
commita56efdb3feffea61d5628112d390bff5091d9a15
tree35a073be1d2ee4356f2735ea4c68b7eaed4a5a4e
parent4564645d213f1101f5afaff6c9cf9ec2620234d4
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