]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc54f42ff32e8e3b3280ad70b675859c901426f5a
tree03138a92f2f7e31800237beb0fdce3da63f4a557
parentcc13c59f15428d0b56aa1925584afda1dae7ffde
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