Skip to content
Commit a3cd66d7 authored by Potin Lai's avatar Potin Lai Committed by Guenter Roeck
Browse files

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: default avatarPotin Lai <potin.lai@quantatw.com>
Link: https://lore.kernel.org/r/20220302123817.27025-2-potin.lai@quantatw.com
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f53bfe4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment