hwmon: (pmbus/core) Generalize pmbus status flag map
authorNaresh Solanki <naresh.solanki@9elements.com>
Wed, 1 Mar 2023 16:44:31 +0000 (17:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:32 +0000 (07:08 -0700)
commit7ab0da3a77fe62670877b986028861dc098532ae
tree38666c5d2dcead010ea9d13b470eb253e5b0dde5
parentbd1e92f9977c78a04e9fe401e359feb67aacb7f9
hwmon: (pmbus/core) Generalize pmbus status flag map

The PMBus status flag map(pmbus_regulator_status_flag_map) is moved
outside of the regulator #if block and the associated variable/struct
name updated to reflect as generic PMBus status.

This will make the PMBus status flag map more versatile and easier to
incorporate into different contexts and functions.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230301164434.1928237-1-Naresh.Solanki@9elements.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c