scpi-dmm: move declaration of local variable out of header file
This commit is contained in:
parent
3e33089b72
commit
0617bb5a4e
|
@ -20,6 +20,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
|
static struct sr_dev_driver scpi_dmm_driver_info;
|
||||||
|
|
||||||
static const uint32_t scanopts[] = {
|
static const uint32_t scanopts[] = {
|
||||||
SR_CONF_CONN,
|
SR_CONF_CONN,
|
||||||
};
|
};
|
||||||
|
@ -320,7 +322,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||||
return SR_OK;
|
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",
|
.name = "scpi-dmm",
|
||||||
.longname = "SCPI DMM",
|
.longname = "SCPI DMM",
|
||||||
.api_version = 1,
|
.api_version = 1,
|
||||||
|
|
|
@ -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_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 int scpi_dmm_receive_data(int fd, int revents, void *cb_data);
|
||||||
|
|
||||||
SR_PRIV struct sr_dev_driver scpi_dmm_driver_info;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue