]> 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)
commit6af61a94a773cd454f8b2514c9831c5d8c6de4bf
tree377d608594f3e5fc8a409c42144a20b93c48ddac
parent926be25aa21a0a7509306c1b9c7c4e935e6d39eb
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