linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] hwmon: Add Corsair Commander Pro driver
@ 2020-06-24  7:21 Marius Zachmann
  2020-06-24  7:21 ` [PATCH v4 1/3] input: add to hid_ignore_list Marius Zachmann
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Marius Zachmann @ 2020-06-24  7:21 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare, Jiri Kosina, Benjamin Tissoires
  Cc: Marius Zachmann, linux-hwmon, linux-doc, linux-kernel, linux-input

This is v4 of a driver for the Corsair Commander Pro.
It provides sysfs attributes for:
- Reading fan speed
- Reading temp sensors
- Reading voltage values
- Writing pwm and reading last written pwm
- Reading fan and temp connection status

It is an usb driver, so it needs to be ignored by usbhid. (patch 3/3)
This is based on the staging/hwmon tree.

Signed-off-by: Marius Zachmann <mail@mariuszachmann.de>
---

Changes from v3
- add device ids to hid_ignore_list in hid-quirks.h
- removed unused update_interval
- ccp_disconnect is static

Changes from v2
- add corsair-cpro to Documentation/hwmon/index.rst
- add SPDX license identifier to corsair-cpro.rst
- remove fanX_enable from Documentation and driver
- changed comment style
- clarified protocol in comments
- add get_temp_cnct for reading temperature sensor
  connection status
- added temp_cnct and temp_label in ccp_device
- added tempX_label, showing connection status
- renamed get_fan_mode_label to get_fan_cnct
- get_temp_cnct and get_fan_cnct only called in probe
- send_usb_cmd checks errors in the device response
- send_usb_cmd clears the buffer and sets the
  command
- inlined get_fan_rpm and get_voltage and removed
  functions
- more reverse christmas tree


Marius Zachmann (3):
  input: add to hid_ignore_list
  add Documentation
  add driver

 Documentation/hwmon/corsair-cpro.rst |  40 +++
 Documentation/hwmon/index.rst        |   1 +
 MAINTAINERS                          |   6 +
 drivers/hid/hid-quirks.c             |   2 +
 drivers/hwmon/Kconfig                |  10 +
 drivers/hwmon/Makefile               |   1 +
 drivers/hwmon/corsair-cpro.c         | 489 +++++++++++++++++++++++++++
 7 files changed, 549 insertions(+)
 create mode 100644 Documentation/hwmon/corsair-cpro.rst
 create mode 100644 drivers/hwmon/corsair-cpro.c

--
2.27.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-24  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  7:21 [PATCH v4 0/3] hwmon: Add Corsair Commander Pro driver Marius Zachmann
2020-06-24  7:21 ` [PATCH v4 1/3] input: add to hid_ignore_list Marius Zachmann
2020-06-24  8:45   ` Benjamin Tissoires
2020-06-24  7:21 ` [PATCH v4 2/3] hwmon: add Documentation Marius Zachmann
2020-06-24  7:21 ` [PATCH v4 3/3] hwmon: add driver Marius Zachmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).