[PATCH v9 0/4] hwmon: Add max31760 fan speed controller
From: Ibrahim Tilki
Date: Sat Sep 10 2022 - 13:20:53 EST
changes in v9:
- return -EINVAL when writing fan_enable and pwm_enable
- fix dt-bindings errors
changes in v8:
- use sizeof(*)
- use DEFINE_SIMPLE_DEV_PM_OPS
- remove __maybe_unused
- remove of_match_ptr
- dt-bindings: style fixes
changes in v7:
- make max31760_read_string static
changes in v6:
- update description of hwmon documentation
- add hwmon documentation to index.rst
changes in v5:
- add dt-bindings documentation
- add maintainer
changes in v4:
- use sysfs_emit instead of sprintf
- use kstrtou8 for pwm
- use closest match for pwm1_auto_point_temp_hyst
changes in v3:
- add regmap cache
- remove pwm1_auto_point[1-48]_{temp,temp_hyst} attributes
- add pwm1_auto_point_temp_hyst attribute
changes in v2:
- remove pulse_per_rev variable in tach_to_rpm
- remove temperature max_hyst and crit_hyst
- strict value checking for fan_enable and pwm_enable
- do not clamp pwm value for Look-up table
- add sysfs_attr_init call
- add documentation
Ibrahim Tilki (4):
drivers: hwmon: Add max31760 fan speed controller driver
docs: hwmon: add max31760 documentation
dt-bindings: hwmon: Add bindings for max31760
MAINTAINERS: Add maintainer for hwmon/max31760
.../bindings/hwmon/adi,max31760.yaml | 42 ++
Documentation/hwmon/index.rst | 1 +
Documentation/hwmon/max31760.rst | 77 +++
MAINTAINERS | 9 +
drivers/hwmon/Kconfig | 12 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/max31760.c | 596 ++++++++++++++++++
7 files changed, 738 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31760.yaml
create mode 100644 Documentation/hwmon/max31760.rst
create mode 100644 drivers/hwmon/max31760.c
--
2.36.1