]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm25066) Support SAMPLES_FOR_AVG register
authorAdamski, Krzysztof (Nokia - PL/Wroclaw) <krzysztof.adamski@nokia.com>
Sun, 14 Apr 2019 21:59:19 +0000 (21:59 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit24919e1d7c1b59f53bbaa6951246f06d2f4c2fd7
tree0e26a07d7d8cb5398f210ec9b95e4029772995ad
parentc6cde75785d1c4ba3e2eb5531dc3840700d9c743
hwmon: (lm25066) Support SAMPLES_FOR_AVG register

Manufacturer specific SAMPLES_FOR_AVG register allows setting the number
of samples used in computing the average values (PMBUS_VIRT_READ_*_AVG).
The number we write is an exponent of base 2 of the number of samples so
for example writing 3 will result in 8 samples average.

Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/lm25066.c