summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nzxt-kraken2.c
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-03-02 15:38:16 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-03-02 20:57:18 +0300
commita3cd66d7cbadcc0c29884f25b754fd22699c719c (patch)
tree04ca197a4361cbd613dd35abfb55ca550c34f248 /drivers/hwmon/nzxt-kraken2.c
parentf53bfe4d698430bd602c37042db4021dc2603b8d (diff)
downloadlinux-a3cd66d7cbadcc0c29884f25b754fd22699c719c.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]. 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>
Diffstat (limited to 'drivers/hwmon/nzxt-kraken2.c')
0 files changed, 0 insertions, 0 deletions