]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Improve PEC support
authorGuenter Roeck <linux@roeck-us.net>
Sun, 31 Oct 2021 16:34:33 +0000 (09:34 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:17 +0000 (08:38 -0700)
commitd3b8827150fcd039a83ce651568b37078e4912d2
treeeb44f427739bfdcb5017c6f0efc5e40f9a8124f6
parentf3e4fc458d9c070ef56dd18996994a580db74e2a
hwmon: (lm90) Improve PEC support

PEC (packet error checking) support for ADM1032 is currently only enabled
if the chip was auto-detected, but not if a chip is instantiated
explicitly. Always enable PEC support by introducing a chip feature flag
indicating partial PEC support. Also, for consistency, disable PEC support
by default to match existing functionality if the chip was not auto-
detected.

At the same time, introduce generic support for PEC with a separate feature
flag. This will be used when support for chips with full PEC functionality
is added.

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