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)
commit5d9e8b3f809f1c12e32fea7061ad2319d2848600
tree0e26a07d7d8cb5398f210ec9b95e4029772995ad
parentbfe033a048f7ce486e01f3ef5a7a24618088af44
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