]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc80668703d1412343a8e98e9c5b8b671311e3f54
treec28fff04459f1001dc7cde3fe4977244e88b0d94
parentd349faffb53a2e359758570b43f19ad0dc5c91d4
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