hwmon: (pmbus) Add get_error_flags support to regulator ops
authorZev Weiss <zev@bewilderbeest.net>
Sat, 19 Feb 2022 00:03:59 +0000 (16:03 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commite0f0307ac16fe69c6f9dcc8d14b532bc608fc989
treec28fff04459f1001dc7cde3fe4977244e88b0d94
parent034dadfbd329231fc771984d4897c71f73a4434d
hwmon: (pmbus) Add get_error_flags support to regulator ops

The various PMBus status bits don't all map perfectly to the more
limited set of REGULATOR_ERROR_* flags, but there's a reasonable
number where they correspond well enough.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20220219000359.19985-1-zev@bewilderbeest.net
[groeck: Added missing locking]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c