]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hameg-hmo/api.c
scpi: factorize dev_inst_new calls out of individual drivers
[libsigrok.git] / hardware / hameg-hmo / api.c
index ee7c74430b2ceb9ce63a2650b93918daa2cebaf4..bf3b868c0828610ce900f108607e1f01f664654f 100644 (file)
@@ -217,7 +217,7 @@ static struct sr_dev_inst *hmo_probe_serial_device(const char *serial_device,
        scpi = NULL;
        hw_info = NULL;
 
-       if (!(scpi = scpi_serial_dev_inst_new(serial_device, serial_options)))
+       if (!(scpi = scpi_dev_inst_new(serial_device, serial_options)))
                goto fail;
 
        sr_info("Probing %s.", serial_device);