summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pcf8591.c
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-04-18 12:17:27 +0300
committerJoel Stanley <joel@jms.id.au>2022-04-18 13:15:21 +0300
commit7deae1fc14b25df2ae83578ddf117d39e7bb6fba (patch)
tree52c83f0c9286064eef0b863ea0390528d3fa1250 /drivers/hwmon/pcf8591.c
parent82552ddcb3aa870773cd84f658e3aab7725cf86c (diff)
downloadlinux-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