]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/colead-slm/api.c
Change sr_dev_inst_new() to take no parameters.
[libsigrok.git] / src / hardware / colead-slm / api.c
index 9ea441781520244c00e52ffaf5a4d5215044fc7d..fa94119680032c1c6430c600c058d0c2c3cee75a 100644 (file)
@@ -82,9 +82,10 @@ static GSList *scan(GSList *options)
        if (!serialcomm)
                serialcomm = SERIALCOMM;
 
-       if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, "Colead",
-                       "SL-5868P", NULL)))
-               return NULL;
+       sdi = sr_dev_inst_new();
+       sdi->status = SR_ST_INACTIVE;
+       sdi->vendor = g_strdup("Colead");
+       sdi->model = g_strdup("SL-5868P");
 
        if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) {
                sr_dbg("Device context malloc failed.");