X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Ffloat.c;h=650decc793532d0cd92310bba7db5e180b32a5f7;hb=c0d93341cb6f409f53f5d9d47058e1efb1cd2d8b;hp=e0622ceb6e60e39b91e779bc889c8b81f8be7b8c;hpb=45c59c8bdd01954f9214fe7b869d92c55415d109;p=libsigrok.git diff --git a/output/float.c b/output/float.c index e0622ceb..650decc7 100644 --- a/output/float.c +++ b/output/float.c @@ -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;