[Nut-upsdev] [PATCH] few additions to the nut-usbups.rules

Stanislav Brabec sbrabec at suse.cz
Wed Nov 2 20:10:35 UTC 2011


Stanislav Brabec wrote:
> Surprisingly, nut-usbups.rules.in is a generated file and it is
> overwritten during build. Attached patch modifies real sources.

OOPS, yet another fix of the patch. Belkin F6C1200-UNV is already
handled by blazer_usb and should not be added to the Belkin HID driver.
Only Krauler UP-M500VA and Ablerex 625L USB were missing in the set of
rules.

Index: nut-2.6.2/drivers/blazer_usb.c
===================================================================
--- nut-2.6.2.orig/drivers/blazer_usb.c
+++ nut-2.6.2/drivers/blazer_usb.c
@@ -305,8 +305,8 @@ static void *phoenix_subdriver(void)
 
 static usb_device_id_t blazer_usb_id[] = {
 	{ USB_DEVICE(0x05b8, 0x0000), &cypress_subdriver },	/* Agiler UPS */
-	{            0x0001, 0x0000,  &krauler_subdriver },	/* Krauler UP-M500VA */
-	{            0xffff, 0x0000,  &krauler_subdriver },	/* Ablerex 625L USB */
+	{ USB_DEVICE(0x0001, 0x0000), &krauler_subdriver },	/* Krauler UP-M500VA */
+	{ USB_DEVICE(0xffff, 0x0000), &krauler_subdriver },	/* Ablerex 625L USB */
 	{ USB_DEVICE(0x0665, 0x5161), &cypress_subdriver },	/* Belkin F6C1200-UNV */
 	{ USB_DEVICE(0x06da, 0x0003), &ippon_subdriver },	/* Mustek Powermust */
 	{ USB_DEVICE(0x0f03, 0x0001), &cypress_subdriver },	/* Unitek Alpha 1200Sx */
Index: nut-2.6.2/drivers/cps-hid.c
===================================================================
--- nut-2.6.2.orig/drivers/cps-hid.c
+++ nut-2.6.2/drivers/cps-hid.c
@@ -48,9 +48,9 @@ static void *cps_battery_scale(void)
 
 /* USB IDs device table */
 static usb_device_id_t cps_usb_device_table[] = {
-	/* 900AVR/BC900D, CP1200AVR/BC1200D */
+	/* 900AVR/BC900D */
 	{ USB_DEVICE(CPS_VENDORID, 0x0005), NULL },
-	/* Dynex DX-800U? */
+	/* CP1200AVR/BC1200D, Dynex DX-800U? */
 	{ USB_DEVICE(CPS_VENDORID, 0x0501), &cps_battery_scale },
 	/* OR2200LCDRM2U */
 	{ USB_DEVICE(CPS_VENDORID, 0x0601), NULL },


-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/




More information about the Nut-upsdev mailing list