hwmon: (corsair-psu) update Series 2022 and 2023 support
authorWilken Gottwalt <wilken.gottwalt@posteo.net>
Sat, 24 Jun 2023 10:14:07 +0000 (10:14 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 24 Jun 2023 15:47:29 +0000 (08:47 -0700)
commit741ed0856d5ef94c2dbdbf58cb13d262d89505bb
tree577431b25a9a79715f83a39e3f446c00984116d6
parentb54c4b02abd1578132712eae5b294a9c77e7422b
hwmon: (corsair-psu) update Series 2022 and 2023 support

The series 2022/2023 reports slightly longer vendor/product strings
and shares USB ids. Technically the reply size is the USB HID packet
size (64 bytes) but all the supported commands do not use more than 8
bytes and replies reporting back strings do not use more then 24 bytes
(vendor and product are in one string in the newer devices now). The
rest of the reply is always filled with '\0'. Also update comments
and documentation accordingly.

Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
Link: https://lore.kernel.org/r/ZJbB72CAPmLflhHG@monster.localdomain
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/corsair-psu.rst
drivers/hwmon/corsair-psu.c