]> sigrok.org Git - libsigrok.git/blobdiff - device.c
sr/cli/gtk/qt: s/hw/driver/ in some places.
[libsigrok.git] / device.c
index 5f8d5ed2a0f423cce66a4a1520b626ec81808fe4..c4ff6ebe4f0d92ab0e47ee5f9949c77527fbc64f 100644 (file)
--- a/device.c
+++ b/device.c
@@ -62,7 +62,7 @@ SR_API int sr_dev_scan(void)
        int i;
        struct sr_dev_driver **drivers;
 
-       drivers = sr_hw_list();
+       drivers = sr_driver_list();
        if (!drivers[0]) {
                sr_err("dev: %s: no supported hardware drivers", __func__);
                return SR_ERR; /* TODO: More specific error? */
@@ -74,7 +74,7 @@ SR_API int sr_dev_scan(void)
         * of these out of the way first.
         */
        for (i = 0; drivers[i]; i++)
-               sr_hw_init(drivers[i]);
+               sr_driver_init(drivers[i]);
 
        return SR_OK;
 }