]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/api.c
Change sr_dev_inst_new() to take no parameters.
[libsigrok.git] / src / hardware / atten-pps3xxx / api.c
index f29377e34617da5cfb22cdce0fc190e4ea959aa6..2a3ac8f5701210a345a3907fc9367c3d1699c4c5 100644 (file)
@@ -164,7 +164,10 @@ static GSList *scan(GSList *options, int modelid)
                return NULL;
        }
 
-       sdi = sr_dev_inst_new(SR_ST_INACTIVE, "Atten", model->name, NULL);
+       sdi = sr_dev_inst_new();
+       sdi->status = SR_ST_INACTIVE;
+       sdi->vendor = g_strdup("Atten");
+       sdi->model = g_strdup(model->name);
        sdi->driver = di;
        sdi->inst_type = SR_INST_SERIAL;
        sdi->conn = serial;