]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/victor-dmm/api.c
Change sr_dev_inst_new() to take no parameters.
[libsigrok.git] / src / hardware / victor-dmm / api.c
index 7ce468e560a7011bfca388cfaeea7e8a8d2ed28b..fe419443c559a0ef050cfabdecfd2b10eb6b5ff4 100644 (file)
@@ -82,9 +82,9 @@ static GSList *scan(GSList *options)
 
                usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
 
-               if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE,
-                               VICTOR_VENDOR, NULL, NULL)))
-                       return NULL;
+               sdi = sr_dev_inst_new();
+               sdi->status = SR_ST_INACTIVE;
+               sdi->vendor = g_strdup(VICTOR_VENDOR);
                sdi->driver = di;
                sdi->connection_id = g_strdup(connection_id);