scpi-dmm: move declaration of local variable out of header file

This commit is contained in:
Gerhard Sittig 2018-11-17 16:43:46 +01:00
parent 3e33089b72
commit 0617bb5a4e
2 changed files with 3 additions and 3 deletions

View 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,

View 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