Skip to contentSkip to conversation

hwmon: add fan/pwm driver for corsair h100i platinum

PATCH New jaap aarts 1 participant 1 message Jul 23, 2020

Subsystems (2)
lore
Share & tools
lore

jaap aarts

author
#0 lore raw

PATCH 1/1 hwmon: add fan/pwm driver for corsair h100i platinum

Adds fan/pwm support for H100i platinum.
Custom temp/fan curves are not supported.

v3:
- tineout is now a #define
- made all funcions static
- removed all retval != 0
- removed horrible mess during hwmon_init using a device table
- removed C++ style comments
- added USB dependency

---
 drivers/hwmon/Kconfig               |   7 +
 drivers/hwmon/Makefile              |   1 +
 drivers/hwmon/corsair_hydro_i_pro.c | 718 ++++++++++++++++++++++++++++
 3 files changed, 726 insertions(+)
 create mode 100644 drivers/hwmon/corsair_hydro_i_pro.c
drivers/hwmon/Kconfig +7 -0
index 288ae9f63588..f466b72d0f67 100644
@@ -378,6 +378,13 @@ config SENSORS_ARM_SCPI
 	  and power sensors available on ARM Ltd's SCP based platforms. The
 	  actual number and type of sensors exported depend on the platform.
 
+config SENSORS_CORSAIR_HYDRO_I_PRO
+	tristate "Corsair hydro HXXXi pro driver"
+	depends on USB
+	help
+	  If you say yes here you get support for the corsair hydro HXXXi pro
+	  range of devices.
+
 config SENSORS_ASB100
 	tristate "Asus ASB100 Bach"
 	depends on X86 && I2C
drivers/hwmon/Makefile +1 -0
index 3e32c21f5efe..ec63294b3ef1 100644
@@ -20,6 +20,7 @@ obj-$(CONFIG_SENSORS_W83793)	+= w83793.o
 obj-$(CONFIG_SENSORS_W83795)	+= w83795.o
 obj-$(CONFIG_SENSORS_W83781D)	+= w83781d.o
 obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
+obj-$(CONFIG_SENSORS_CORSAIR_HYDRO_I_PRO)	+= corsair_hydro_i_pro.o
 
 obj-$(CONFIG_SENSORS_AB8500)	+= abx500.o ab8500.o
 obj-$(CONFIG_SENSORS_ABITUGURU)	+= abituguru.o
drivers/hwmon/corsair_hydro_i_pro.c new file +718 -0

718 lines not on this page · raw message

Signature · 1 line
2.27.0