[PATCH 0/2] hwmon: lm90: Fix DT channel constraints and reject unsupported channel 2
From: Flaviu Nistor
Date: Mon Aug 24 2026 - 14:39:15 EST
The intention of this patch series is to fix DT channel constrains in the
dt-bindings and inprove the driver to reject unsupported channel 2.
dt-bindings:
Forbid temperature-offset-millicelsius on channel@0 (local sensor).
Rejecting of assigning temperature-offset-millicelsius for channel@0 is
already implemented in the driver.
Reject channel@2 for compatibles that have only one remote sensor.
driver:
If the sensor have only one remote channel, reject a possible unsupported
channel 2 and return an error, similar to miss-assigment of temperature
-offset-millicelsius property to channel@0.
Flaviu Nistor (2):
dt-bindings: hwmon: national,lm90: Fix channel constraints for
temperature offset
hwmon: (lm90) Reject channel 2 on chips with only one remote sensor
.../bindings/hwmon/national,lm90.yaml | 29 +++++++++++++++++--
drivers/hwmon/lm90.c | 5 ++++
2 files changed, 31 insertions(+), 3 deletions(-)
--
2.34.1