OSDN Git Service

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)
commit3b0982ff93aab8751f2c5df456a68abed11f84da
treeeb44f427739bfdcb5017c6f0efc5e40f9a8124f6
parentf68480cc32750eecf44dd657322040d41a6a557c
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