hwmon: (corsair-cpro) Add firmware and bootloader information
Marius Zachmann
maintainerPATCH v5 1/1 hwmon: (corsair-cpro) Add firmware and bootloader information
Add support for reporting firmware and bootloader version using debugfs. Update documentation accordingly.
---
Changes in v5:
- remove else in get_fw_version and get_bl_version in favor of returning directly
Changes in v4:
- split get_fw_version into get_fw_version and get_bl_version
- only create debugfs file, when the reading succeeded
Changes in v3:
- use different debugfs directory name for each device
Changes in v2:
- better patch description
- Documentation uses "Firmware version" and "Bootloader version"
- removed conditional CONFIG_DEBUG_FS
- get_fw_version gets called from ccp_debugfs_init
- get_fw_version does print a hid_notice when an error occurs instead of failing.
--- Documentation/hwmon/corsair-cpro.rst | 8 +++ drivers/hwmon/corsair-cpro.c | 88 ++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+)
Documentation/hwmon/corsair-cpro.rst +8 -0
@@ -39,3 +39,11 @@ fan[1-6]_target Sets fan speed target rpm. pwm[1-6] Sets the fan speed. Values from 0-255. Can only be read if pwm was set directly. ======================= ===================================================================== + +Debugfs entries +--------------- + +======================= =================== +firmware_version Firmware version +bootloader_version Bootloader version +======================= ===================
drivers/hwmon/corsair-cpro.c +88 -0
135 lines not on this page · raw message
Signature · 1 line
2.45.0
Quoted 4 lines · Marius Zachmann
Add support for reporting firmware and bootloader version using debugfs. Update documentation accordingly.
Signed-off-by Marius Zachmann <[email protected]>
Applied.
Note: This patch missed the commit window, so it will only show up in hwmon-next and in linux-next after the commit window closes.
Guenter