[PATCH] Add new PSU: Corsair HX1200i (2023) to corsair-psu.c
From: Jarlath
Date: Sat Apr 06 2024 - 10:56:39 EST
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@xxxxxxxxx>
--- 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 */
{ },
};