]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Add explicit support for MAX6648/MAX6692
authorGuenter Roeck <linux@roeck-us.net>
Sat, 6 Nov 2021 04:58:51 +0000 (21:58 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:18 +0000 (08:38 -0700)
commite00b5ae5ff081efb78fa4e15d47d3a95f5afcd61
tree8959bf14cb3a41057aa78c509fa815c6c5c16289
parent8ca99963b23b338c12235423e282ad5e647a91fb
hwmon: (lm90) Add explicit support for MAX6648/MAX6692

Unlike MAX6646/MAX6647/MAX6649, MAX6648 and MAX6692 only support
a temperature range of 0..127 degrees C. Separate support for the
two sets of chips to be able to support maximum temperature ranges
correctly for all chips. Introduce new feature flag to indicate
temperature support up to 255 degrees C.

Since the chips are almost identical except for the supported temperature
range, automatic chip detection is limited. Effectively this means that
MAX6648 may be mis-detected as MAX6649 when auto-detected, but there is
nothing we can do about that.

Devicetree nodes are not added for the added chips since it is quite
unlikely that such old chips will ever be used in a devicetree based
system. They can be added later if needed.

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