]> sigrok.org Git - libsigrok.git/blobdiff - output/float.c
sr: remove obsolete sr_dev_inst_get() call
[libsigrok.git] / output / float.c
index 850b5d435444e8df64eea2fd9186b2158d8c1fec..650decc793532d0cd92310bba7db5e180b32a5f7 100644 (file)
@@ -21,8 +21,8 @@
 #include <string.h>
 #include <glib.h>
 #include "config.h"
-#include "sigrok.h"
-#include "sigrok-internal.h"
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
 
 struct context {
        unsigned int num_enabled_probes;
@@ -38,10 +38,10 @@ static int init(struct sr_output *o)
        if (!o)
                return SR_ERR_ARG;
 
-       if (!o->dev)
+       if (!o->sdi)
                return SR_ERR_ARG;
 
-       if (!o->dev->driver)
+       if (!o->sdi->driver)
                return SR_ERR_ARG;
 
        if (!(ctx = g_try_malloc0(sizeof(struct context))))
@@ -51,7 +51,7 @@ static int init(struct sr_output *o)
 
        /* Get the number of probes and their names. */
        ctx->probelist = g_ptr_array_new();
-       for (l = o->dev->probes; l; l = l->next) {
+       for (l = o->sdi->probes; l; l = l->next) {
                probe = l->data;
                if (!probe || !probe->enabled)
                        continue;