]> git.hungrycats.org Git - linux/commit
hwmon: (lm75) Support active-high alert polarity
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 4 May 2026 15:10:20 +0000 (17:10 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:59 +0000 (08:22 -0700)
commit1be4001d9b9b0cd083ed1e3c7817ad01f29d120a
tree58fdd8db592dc6f90afdbd2bfc3ab52b65fbd482
parent01dd3f682d86bcddf51e22255f2cabee66885080
hwmon: (lm75) Support active-high alert polarity

LM75 devices supported by this driver support configurable active-high
alert polarity. This is already documented in the devicetree description.
Add support for it to the driver.

Follow documentation and defensively enforce active-low if property is
not set. This avoids possible inconsistencies for future devices with
wrong parametrization. No API breakage as all current devices have
their parameters set to active-low.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://lore.kernel.org/r/20260504151020.462342-3-markus.stockhausen@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm75.c