diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-04-18 12:17:27 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2022-04-18 13:15:21 +0300 |
commit | 7deae1fc14b25df2ae83578ddf117d39e7bb6fba (patch) | |
tree | 52c83f0c9286064eef0b863ea0390528d3fa1250 /drivers/hwmon/pcf8591.c | |
parent | 82552ddcb3aa870773cd84f658e3aab7725cf86c (diff) | |
download | linux-7deae1fc14b25df2ae83578ddf117d39e7bb6fba.tar.xz |
hwmon: (adm1275) Allow setting sample averaging
Current driver assume PWR_AVG and VI_AVG as 1 by default, and user needs
to set sample averaging via sysfs manually.
This patch parses the properties "adi,power-sample-average" and
"adi,volt-curr-sample-average" from device tree, and setting sample
averaging during probe. Input value must be one of value in the
list [1, 2, 4, 8, 16, 32, 64, 128].
OpenBMC-Staging-Count: 1
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Link: https://lore.kernel.org/r/20220302123817.27025-2-potin.lai@quantatw.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220418091728.23051-2-potin.lai@quantatw.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/hwmon/pcf8591.c')
0 files changed, 0 insertions, 0 deletions