summaryrefslogtreecommitdiff
path: root/drivers/hwmon/dell-smm-hwmon.c
diff options
context:
space:
mode:
authorMårten Lindahl <marten.lindahl@axis.com>2022-06-14 12:51:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-07-13 18:38:20 +0300
commit4a235369dae5aa366c007fa46f670375cd845374 (patch)
tree356423d6cb1795e9f83e8c62a14d9099ea75651a /drivers/hwmon/dell-smm-hwmon.c
parent2a20db9bfc42b71fa311ace70265ba16f5a3ab80 (diff)
downloadlinux-4a235369dae5aa366c007fa46f670375cd845374.tar.xz
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 'drivers/hwmon/dell-smm-hwmon.c')
0 files changed, 0 insertions, 0 deletions