From: Gerhard Sittig Date: Sat, 17 Nov 2018 15:43:46 +0000 (+0100) Subject: scpi-dmm: move declaration of local variable out of header file X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0617bb5a4e22c78c9603ae8a7d93506cfacde246;p=libsigrok.git scpi-dmm: move declaration of local variable out of header file --- diff --git a/src/hardware/scpi-dmm/api.c b/src/hardware/scpi-dmm/api.c index df758805..cb70423f 100644 --- a/src/hardware/scpi-dmm/api.c +++ b/src/hardware/scpi-dmm/api.c @@ -20,6 +20,8 @@ #include #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, diff --git a/src/hardware/scpi-dmm/protocol.h b/src/hardware/scpi-dmm/protocol.h index 4a569df5..0881074c 100644 --- a/src/hardware/scpi-dmm/protocol.h +++ b/src/hardware/scpi-dmm/protocol.h @@ -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