mbox series

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

Message ID 20230105225107.58308-1-W_Armin@gmx.de (mailing list archive)
Headers show
Series (ftsteutates) Various fixes | expand

Message

Armin Wolf Jan. 5, 2023, 10:51 p.m. UTC
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