summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ
diff options
context:
space:
mode:
authorAdamski, Krzysztof (Nokia - PL/Wroclaw) <krzysztof.adamski@nokia.com>2019-05-29 14:36:21 +0000
committerGuenter Roeck <linux@roeck-us.net>2019-06-23 18:33:01 -0700
commitc83529c17e12046ac4a8d8fbbc49c51255c7b4da (patch)
tree5b8edabc6b1dbace4f3d6c238d57b22b37227bb4 /drivers/hwmon/occ
parent5696e4aaabf2a6bae0fe8b4abf17fe17c2b03beb (diff)
downloadlinux-stable-c83529c17e12046ac4a8d8fbbc49c51255c7b4da.tar.gz
linux-stable-c83529c17e12046ac4a8d8fbbc49c51255c7b4da.tar.bz2
linux-stable-c83529c17e12046ac4a8d8fbbc49c51255c7b4da.zip
hwmon: (pmbus/adm1275) support PMBUS_VIRT_*_SAMPLES
The device supports setting the number of samples for averaging the measurements. There are two separate settings - PWR_AVG for averaging PIN and VI_AVG for averaging VIN/VAUX/IOUT, both being part of PMON_CONFIG register. The values are stored as exponent of base 2 of the actual number of samples that will be taken. Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> [groeck: Dropped unused variables] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/occ')
0 files changed, 0 insertions, 0 deletions