]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
sr: Make more symbols private via static/SR_PRIV.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index 723b2445f454a77cd7b1d4772d60b54a985996f8..d93291ea4bb8ba1a9ab49910b7b2d3785a230b0c 100644 (file)
@@ -23,7 +23,6 @@
  * ASIX SIGMA Logic Analyzer Driver
  */
 
-#include "config.h"
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <ftdi.h>
@@ -919,9 +918,6 @@ static int decode_chunk_ts(uint8_t *buf, uint16_t *lastts,
                        tosend = MIN(2048, n - sent);
 
                        packet.type = SR_DF_LOGIC;
-                       /* TODO: fill in timeoffset and duration */
-                       packet.timeoffset = 0;
-                       packet.duration = 0;
                        packet.payload = &logic;
                        logic.length = tosend * sizeof(uint16_t);
                        logic.unitsize = 2;
@@ -967,9 +963,6 @@ static int decode_chunk_ts(uint8_t *buf, uint16_t *lastts,
 
                        if (tosend > 0) {
                                packet.type = SR_DF_LOGIC;
-                               /* TODO: fill in timeoffset and duration */
-                               packet.timeoffset = 0;
-                               packet.duration = 0;
                                packet.payload = &logic;
                                logic.length = tosend * sizeof(uint16_t);
                                logic.unitsize = 2;
@@ -982,9 +975,6 @@ static int decode_chunk_ts(uint8_t *buf, uint16_t *lastts,
                        /* Only send trigger if explicitly enabled. */
                        if (sigma->use_triggers) {
                                packet.type = SR_DF_TRIGGER;
-                               /* TODO: fill in timeoffset only */
-                               packet.timeoffset = 0;
-                               packet.duration = 0;
                                sr_session_bus(sigma->session_id, &packet);
                        }
                }
@@ -994,9 +984,6 @@ static int decode_chunk_ts(uint8_t *buf, uint16_t *lastts,
 
                if (tosend > 0) {
                        packet.type = SR_DF_LOGIC;
-                       /* TODO: fill in timeoffset and duration */
-                       packet.timeoffset = 0;
-                       packet.duration = 0;
                        packet.payload = &logic;
                        logic.length = tosend * sizeof(uint16_t);
                        logic.unitsize = 2;
@@ -1412,7 +1399,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_data)
        sigma->state.state = SIGMA_DOWNLOAD;
 }
 
-struct sr_device_plugin asix_sigma_plugin_info = {
+SR_PRIV struct sr_device_plugin asix_sigma_plugin_info = {
        .name = "asix-sigma",
        .longname = "ASIX SIGMA",
        .api_version = 1,