diff options
| author | 2022-06-14 11:51:44 +0200 | |
|---|---|---|
| committer | 2022-07-13 08:38:20 -0700 | |
| commit | 4a235369dae5aa366c007fa46f670375cd845374 (patch) | |
| tree | 356423d6cb1795e9f83e8c62a14d9099ea75651a /tools/scripts/ssh:/git@git.zx2c4.com | |
| parent | hwmon: (pmbus) Add list_voltage to pmbus ops (diff) | |
| download | linux-dev-4a235369dae5aa366c007fa46f670375cd845374.tar.xz linux-dev-4a235369dae5aa366c007fa46f670375cd845374.zip | |
hwmon: (pmbus/ltc2978) Set voltage resolution
The LTC2977 regulator does not set the regulator_desc .n_voltages value
which is needed in order to let the regulator core list the regulator
voltage range.
This patch defines a regulator_desc with a voltage range, and uses it
for defining voltage resolution for regulators LTC2972/LTC2974/LTC2975/
LTC2977/LTC2978/LTC2979/LTC2980/LTM2987 based on that they all have a 16
bit ADC with the same stepwise 122.07uV resolution. It also scales the
resolution to a 1mV resolution which is easier to handle.
Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20220614095144.3472305-1-marten.lindahl@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
