diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2019-04-16 22:41:31 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-16 23:10:20 +0300 |
commit | 5c090abf945bf5fd496c861f371410888be8f4de (patch) | |
tree | 1692a7111591bfffead6cb766dbd7c989f5e14a4 /drivers/base/devres.c | |
parent | 038a9c3d1e42420943c60f879fdb00b62f207f9c (diff) | |
download | linux-5c090abf945bf5fd496c861f371410888be8f4de.tar.xz |
hwmon: (ina3221) Add averaging mode support
The CONFIG register has a 3-bit averaging mode field for users
to setup the number of samples that are collected and averaged
together. This is very useful to filter noise from sensor data.
This patch adds a 'samples' sysfs node using hwmon_chip_samples
of hwmon core, and updates wait time calculation by taking this
samples value into account.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/base/devres.c')
0 files changed, 0 insertions, 0 deletions