]> sigrok.org Git - libsigrok.git/commitdiff
scpi-dmm: move declaration of local variable out of header file
authorGerhard Sittig <redacted>
Sat, 17 Nov 2018 15:43:46 +0000 (16:43 +0100)
committerGerhard Sittig <redacted>
Sat, 17 Nov 2018 19:07:21 +0000 (20:07 +0100)
src/hardware/scpi-dmm/api.c
src/hardware/scpi-dmm/protocol.h

index df758805a06ff3983fd7014ac985e35b10baed72..cb70423f2123929d21fd6f402de51c6504c38f45 100644 (file)
@@ -20,6 +20,8 @@
 #include <string.h>
 #include "protocol.h"
 
+static struct sr_dev_driver scpi_dmm_driver_info;
+
 static const uint32_t scanopts[] = {
        SR_CONF_CONN,
 };
@@ -320,7 +322,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
        return SR_OK;
 }
 
-SR_PRIV struct sr_dev_driver scpi_dmm_driver_info = {
+static struct sr_dev_driver scpi_dmm_driver_info = {
        .name = "scpi-dmm",
        .longname = "SCPI DMM",
        .api_version = 1,
index 4a569df58d8f4cf504d795cabc5b3cd3b6b3244e..0881074ce9ef2715b381c60d98bbb78bd9fd9955 100644 (file)
@@ -94,6 +94,4 @@ SR_PRIV int scpi_dmm_set_mq(const struct sr_dev_inst *sdi,
 SR_PRIV int scpi_dmm_get_meas_agilent(const struct sr_dev_inst *sdi, size_t ch);
 SR_PRIV int scpi_dmm_receive_data(int fd, int revents, void *cb_data);
 
-SR_PRIV struct sr_dev_driver scpi_dmm_driver_info;
-
 #endif