]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
sr: remove unused argument from hardware driver function init()
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index 334a11094d8239d25db86050e4241d35e5b46d64..736490feca20e9c3cfa5d2d3b26193c9055f10ff 100644 (file)
@@ -38,6 +38,13 @@ static const struct fx2lafw_profile supported_fx2[] = {
        { 0x08a9, 0x0014, "CWAV", "USBee AX", NULL,
                FIRMWARE_DIR "/fx2lafw-cwav-usbeeax.fw",
                0 },
+       /*
+        * CWAV USBee DX
+        * XZL-Studio DX
+        */
+       { 0x08a9, 0x0015, "CWAV", "USBee DX", NULL,
+               FIRMWARE_DIR "/fx2lafw-cwav-usbeedx.fw",
+               DEV_CAPS_16BIT },
 
        /*
         * CWAV USBee SX
@@ -375,7 +382,7 @@ static struct context *fx2lafw_dev_new(void)
  * API callbacks
  */
 
-static int hw_init(const char *devinfo)
+static int hw_init(void)
 {
        struct sr_dev_inst *sdi;
        struct libusb_device_descriptor des;
@@ -386,9 +393,6 @@ static int hw_init(const char *devinfo)
        int devcnt = 0;
        int i, j;
 
-       /* Avoid compiler warnings. */
-       (void)devinfo;
-
        if (libusb_init(&usb_context) != 0) {
                sr_warn("fx2lafw: Failed to initialize libusb.");
                return 0;