hwmon: (pmbus/max16601) Determine and use number of populated phases
authorGuenter Roeck <linux@roeck-us.net>
Mon, 25 Jan 2021 18:53:26 +0000 (10:53 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 29 Jan 2021 17:20:31 +0000 (09:20 -0800)
commit220c404dc7a5f94779db741fa96cb63ef03b6d08
tree599433e07d2cfeae0cb7918d11960d652f67fe97
parent906ace80c2849d6ef114cfdb98178bd667f16aed
hwmon: (pmbus/max16601) Determine and use number of populated phases

The MAX16601 can report the number of populated phases. Use this
information to only create sysfs attributes for populated phases.

Cc: Alex Qiu <xqiu@google.com>
Cc: Ugur Usug <Ugur.Usug@maximintegrated.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210125185327.93282-1-linux@roeck-us.net
Reviewed-by: Alex Qiu <xqiu@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/max16601.rst
drivers/hwmon/pmbus/max16601.c