]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
unify sr_datafeed_meta_* into one struct containing sr_config
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index a9bc899e1e88a9277abf0c05f34eeaed873b1e48..9eae9508fd7af9500fc9b45645bbdaf92ed848e7 100644 (file)
@@ -93,7 +93,8 @@ static const int hwcaps[] = {
 
 static const char *probe_names[] = {
        "0",  "1",  "2",  "3",  "4",  "5",  "6",  "7",
-       "8",  "9", "10", "11", "12", "13", "14", "15", NULL,
+       "8",  "9", "10", "11", "12", "13", "14", "15",
+       NULL,
 };
 
 static const uint64_t supported_samplerates[] = {
@@ -266,9 +267,12 @@ static int fx2lafw_dev_open(struct sr_dev_inst *sdi)
 
                sdi->status = SR_ST_ACTIVE;
                sr_info("Opened device %d on %d.%d, "
-                       "interface %d, firmware %d.%d, REVID %d.",
+                       "interface %d, firmware %d.%d.",
                        sdi->index, devc->usb->bus, devc->usb->address,
-                       USB_INTERFACE, vi.major, vi.minor, revid);
+                       USB_INTERFACE, vi.major, vi.minor);
+
+               sr_info("Detected REVID=%d, it's a Cypress CY7C68013%s.",
+                       revid, (revid != 1) ? " (FX2)" : "A (FX2LP)");
 
                break;
        }
@@ -608,18 +612,6 @@ static int hw_info_get(int info_id, const void **data,
        case SR_DI_HWCAPS:
                *data = hwcaps;
                break;
-       case SR_DI_NUM_PROBES:
-               if (sdi) {
-                       devc = sdi->priv;
-                       *data = GINT_TO_POINTER(
-                               (devc->profile->dev_caps & DEV_CAPS_16BIT) ?
-                               16 : 8);
-               } else
-                       return SR_ERR;
-               break;
-       case SR_DI_PROBE_NAMES:
-               *data = probe_names;
-               break;
        case SR_DI_SAMPLERATES:
                *data = &samplerates;
                break;