hwmon: (pmbus) Add a PMBUS_NO_CAPABILITY platform data flag
authorEddie James <eajames@linux.ibm.com>
Tue, 22 Dec 2020 15:26:39 +0000 (09:26 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:18 +0000 (17:44 -0800)
commite5befc024cb4515d815662ed8746712cc5366bfc
treece946cdb9763b7381b8fda0747f02ce010deeb9e
parentc8d0d3fa946976c6bc69589375d7d063f0cb1492
hwmon: (pmbus) Add a PMBUS_NO_CAPABILITY platform data flag

Some PMBus chips don't respond with valid data when reading the
CAPABILITY register. Add a flag that device drivers can set so
that the PMBus core driver doesn't use CAPABILITY to determine it's
behavior.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20201222152640.27749-2-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c
include/linux/pmbus.h