]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Support temp_samples attribute
authorGuenter Roeck <linux@roeck-us.net>
Sun, 16 Jan 2022 16:55:49 +0000 (08:55 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:19 +0000 (08:38 -0700)
commit5d71e4b6bfc060e7f95ed52cabf79be05a1feb11
tree377d608594f3e5fc8a409c42144a20b93c48ddac
parent4e6e3b3f5ac1f47f682d5d5f6dd1578bd36516c6
hwmon: (lm90) Support temp_samples attribute

Several of the chips supported by this driver support configuring the
number of samples (or the fault queue depth) necessary before a fault
or alarm is reported. This is done either with a bit in the configuration
register or with a separate "consecutive alert" register. Support this
functionality with the temp_samples attribute.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c