]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/api.c
Change sr_dev_inst_new() to take no parameters.
[libsigrok.git] / src / hardware / hantek-dso / api.c
index e6420a24176f98310e5f816181f4f829d687659e..201518a4e71b3967add0124a6ffe6a69ec5bd743 100644 (file)
@@ -172,7 +172,10 @@ static struct sr_dev_inst *dso_dev_new(const struct dso_profile *prof)
        struct dev_context *devc;
        int i;
 
-       sdi = sr_dev_inst_new(SR_ST_INITIALIZING, prof->vendor, prof->model, NULL);
+       sdi = sr_dev_inst_new();
+       sdi->status = SR_ST_INITIALIZING;
+       sdi->vendor = g_strdup(prof->vendor);
+       sdi->model = g_strdup(prof->model);
        sdi->driver = di;
 
        /*