]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/chronovu-la/api.c
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
[libsigrok.git] / src / hardware / chronovu-la / api.c
index 0a22922d4699c9e8d7d675b2751ed1655a2b0200..594a064919634cca8b524ec618b2f5a8e4944815 100644 (file)
@@ -120,7 +120,7 @@ static int add_device(int idx, int model, GSList **devices)
        devc->cur_samplerate = devc->prof->max_samplerate;
 
        /* Register the device with libsigrok. */
-       sdi = sr_dev_inst_new(0, SR_ST_INITIALIZING,
+       sdi = sr_dev_inst_new(SR_ST_INITIALIZING,
                              "ChronoVu", devc->prof->modelname, NULL);
        if (!sdi) {
                sr_err("Failed to create device instance.");