]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hameg-hmo/api.c
scpi: add a struct drv_context parameter to scpi_dev_inst_new()
[libsigrok.git] / hardware / hameg-hmo / api.c
index b63ee51bb8cf4347032e6bb8920c66d77c38e8a0..5abd8c5fba192286113ccd45f0722fe9f3642ff2 100644 (file)
@@ -220,7 +220,7 @@ static struct sr_dev_inst *hmo_probe_serial_device(const char *serial_device,
        scpi = NULL;
        hw_info = NULL;
 
-       if (!(scpi = scpi_dev_inst_new(serial_device, serial_options)))
+       if (!(scpi = scpi_dev_inst_new(di->priv, serial_device, serial_options)))
                goto fail;
 
        sr_info("Probing %s.", serial_device);