hwmon: (pmbus/mp2975) Fix PGOOD in READ_STATUS_WORD
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Mon, 31 Jul 2023 09:22:04 +0000 (11:22 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:30 +0000 (06:04 -0700)
commitacda945afb465e2a2c436623a35203d63994441f
tree282218c0b42e218c89713cce89c51a8beab0b5d3
parent45f154dc966322948725af1004f53a5531f03b7f
hwmon: (pmbus/mp2975) Fix PGOOD in READ_STATUS_WORD

MP2973 & MP2971 return PGOOD instead of PB_STATUS_POWER_GOOD_N.
Fix that in the read_word_data hook.

MP2975 should not be affected, but that has not been confirmed with
hardware.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
Link: https://lore.kernel.org/r/20230731092204.2933045-1-Naresh.Solanki@9elements.com
[groeck: Rephrased description to indicate that MP2975 is likely not affected]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mp2975.c