Re: [PATCH 3/3] hwmon: Add Maxim MAX17135 temperature sensor driver
From: Guenter Roeck
Date: Wed Dec 02 2026 - 14:55:43 EST
On 12/2/26 08:43, Michiel van Beers via B4 Relay wrote:
From: Michiel van Beers <michielvanbeers@xxxxxxxxx>...
The MAX17135 E-paper display PMIC has a temperature sensor that measures
the die and an external diode. Add a driver for it. The driver binds to
the auxiliary device that the regulator driver creates.
Reading the external channel fails with -ENODATA while the chip reports
the diode as open or shorted.
Signed-off-by: Michiel van Beers <michielvanbeers@xxxxxxxxx>
---
+
+static const struct hwmon_channel_info * const max17135_hwmon_info[] = {
If this driver isn't dropped (there seems to be a request to implement
it as iio driver), you might want to consider adding
HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ),
here if there is interest to support thermal zones for this chip.
No preference from my side, so
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>
from my side.
Thanks,
Guenter
+ HWMON_CHANNEL_INFO(temp,
+ HWMON_T_INPUT,
+ HWMON_T_INPUT | HWMON_T_FAULT),
+ NULL
+};