]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/agilent-dmm/api.c
Put driver pointers into special section
[libsigrok.git] / src / hardware / agilent-dmm / api.c
index b5ba7ae2e9851134b9561ef9ce4d4cdd5c25a59f..514a2d276881b8444f8099b2edbbe76285cf7e05 100644 (file)
@@ -70,8 +70,6 @@ static const struct agdmm_profile supported_agdmm[] = {
        ALL_ZERO
 };
 
-SR_PRIV struct sr_dev_driver agdmm_driver_info;
-
 static GSList *scan(struct sr_dev_driver *di, GSList *options)
 {
        struct sr_dev_inst *sdi;
@@ -231,7 +229,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
                        sdi->conn, LOG_PREFIX);
 }
 
-SR_PRIV struct sr_dev_driver agdmm_driver_info = {
+static struct sr_dev_driver agdmm_driver_info = {
        .name = "agilent-dmm",
        .longname = "Agilent U12xx series DMMs",
        .api_version = 1,
@@ -249,3 +247,4 @@ SR_PRIV struct sr_dev_driver agdmm_driver_info = {
        .dev_acquisition_stop = dev_acquisition_stop,
        .context = NULL,
 };
+SR_REGISTER_DEV_DRIVER(agdmm_driver_info);