hwmon: (max31722) Warn about failure to put device in stand-by in .remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 12 Oct 2021 15:39:29 +0000 (17:39 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 17 Oct 2021 05:42:14 +0000 (22:42 -0700)
commitefb389b8c34fa7da673eb0a598b223bd891daa9d
tree34622a812729370bd051276e8dab38023713f125
parent2c59a32d12201b4aeaef5c0cc04698670e164dc3
hwmon: (max31722) Warn about failure to put device in stand-by in .remove()

When an spi driver's remove function returns a non-zero error code
nothing happens apart from emitting a generic error message. Make this
error message more device specific and return zero instead.

Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211012153945.2651412-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max31722.c