[PATCH] Add new PSU: Corsair HX1200i (2023) to corsair-psu.c

Jarlath posted 1 patch 1 year, 10 months ago
[PATCH] Add new PSU: Corsair HX1200i (2023) to corsair-psu.c
Posted by Jarlath 1 year, 10 months ago
It looks like Corsair has updated its power supply portfolio. The
owned HX1200i is not supported by default. After adding the
[idProduct] configuration, you can get a correct reading from the
device. The HX1200i as of 2024-04-04 on the site is marked as a new
model.

Signed-off-by: Tomasz Gwozdz <jarla7h@gmail.com>


--- drivers/hwmon/corsair-psu.c.orig    2024-04-06 15:49:20.922744536 +0200
+++ drivers/hwmon/corsair-psu.c 2024-04-06 16:03:27.793762525 +0200
@@ -883,6 +883,7 @@ static const struct hid_device_id corsai
       { HID_USB_DEVICE(0x1b1c, 0x1c0c) }, /* Corsair RM850i */
       { HID_USB_DEVICE(0x1b1c, 0x1c0d) }, /* Corsair RM1000i */
       { HID_USB_DEVICE(0x1b1c, 0x1c1e) }, /* Corsair HX1000i Series 2023 */
+       { HID_USB_DEVICE(0x1b1c, 0x1c23) }, /* Corsair HX1200i Series 2023 */
       { HID_USB_DEVICE(0x1b1c, 0x1c1f) }, /* Corsair HX1500i Series
2022 and 2023 */
       { },
};