]> 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)
commitde8e097aea42c2e0e7850faf1c25942d57adb65d
tree03138a92f2f7e31800237beb0fdce3da63f4a557
parent8ab8c2fe848df5a3f26c36aeaf9bb3c460e8fa96
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