]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/mic-985xx/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / mic-985xx / api.c
index d2ce842b07d39b9f88e984ba9e62e0f4207bb15a..ae48fb6e1122c4fbace3b5cfe44b0e36ae640980 100644 (file)
@@ -91,7 +91,7 @@ static GSList *mic_scan(const char *conn, const char *serialcomm, int idx)
        sr_info("Found device on port %s.", conn);
 
        /* TODO: Fill in version from protocol response. */
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INACTIVE;
        sdi->vendor = g_strdup(mic_devs[idx].vendor);
        sdi->model = g_strdup(mic_devs[idx].device);