[PATCH v2 0/3] (ftsteutates) Various fixes

From: Armin Wolf
Date: Thu Jan 05 2023 - 17:51:34 EST


This patch series contains the missing changes from the previous series.

The first patch converts the driver to use the modern *_with_info() API,
while the second patch replaces the nonstandard fanX_source attributes
with standard pwmX_auto_channels_temp attributes. Since the behaviour of
the pwmX_auto_channels_temp attributes is a bit special with the teutates BMC,
it is added to the drivers documentation. The last patch adds support
for fanX_fault attributes, using information already available inside
the driver but not exported to userspace.

Changes since v1:
- Omit patches regarding the scaling of measurements and watchdog
registration
- Split the patch regarding the API conversion into three separate
patches
- introduce FTS_FAN_SOURCE_INVALID so the pwmX_auto_channels_temp
attributes display proper values for unconnected fans

Armin Wolf (3):
hwmon: (ftsteutates) Convert to devm_hwmon_device_register_with_info()
hwmon: (ftsteutates) Replace fanX_source with pwmX_auto_channels_temp
hwmon: (ftsteutates) Add support for fanX_fault attributes

Documentation/hwmon/ftsteutates.rst | 5 +
drivers/hwmon/ftsteutates.c | 550 +++++++++++-----------------
2 files changed, 210 insertions(+), 345 deletions(-)

--
2.30.2