]> sigrok.org Git - libsigrok.git/blobdiff - hardware/ikalogic-scanalogic2/protocol.h
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
[libsigrok.git] / hardware / ikalogic-scanalogic2 / protocol.h
index adc3859237ae5283a55c07a7fa8b53131c8e8fc9..6cdb607254a0d10b3eb69649d57133ff05ac5567 100644 (file)
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 
-/* Message logging helpers with subsystem-specific prefix string. */
-#define LOG_PREFIX "ikalogic-scanalogic2: "
-#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args)
-#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args)
-#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args)
-#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args)
-#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args)
-#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args)
+#define LOG_PREFIX "ikalogic-scanalogic2"
 
 #define VENDOR_NAME                    "IKALOGIC"
 #define MODEL_NAME                     "Scanalogic-2"
@@ -159,10 +152,7 @@ struct dev_context {
        void *cb_data;
 
        /* Array to provide an index based access to all probes. */
-       const struct sr_probe *probes[NUM_PROBES];
-
-       unsigned int num_usbfd;
-       int *usbfd;
+       const struct sr_channel *probes[NUM_PROBES];
 
        struct libusb_transfer *xfer_in, *xfer_out;