hwmon: (pmbus) Add list_voltage to pmbus ops
authorMårten Lindahl <marten.lindahl@axis.com>
Tue, 14 Jun 2022 09:38:55 +0000 (11:38 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:20 +0000 (08:38 -0700)
commit2a20db9bfc42b71fa311ace70265ba16f5a3ab80
tree03138a92f2f7e31800237beb0fdce3da63f4a557
parent07fb76273db89d9340fa1fea2997d73fa3768ab9
hwmon: (pmbus) Add list_voltage to pmbus ops

When checking if a regulator supports a voltage range, the regulator
needs to have a list_voltage callback set to the regulator_ops or else
-EINVAL will be returned. This support does not exist for the pmbus
regulators, so this patch adds pmbus_regulator_list_voltage to the
pmbus_regulator_ops.

Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20220614093856.3470672-3-marten.lindahl@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c