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
父節點 3e33089b72
當前提交 0617bb5a4e
共有 2 個檔案被更改,包括 3 行新增3 行删除

查看文件

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

查看文件

@ -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