]> sigrok.org Git - libsigrok.git/blobdiff - output/analog.c
output: Introduce output module API wrappers.
[libsigrok.git] / output / analog.c
index 131e24c487bfee8177a3cd6c24759178ef4da4df..bdb55733c492576d51e5ab72c7e1a5f4dfd2419d 100644 (file)
@@ -206,8 +206,8 @@ static void fancyprint(int unit, int mqflags, float value, GString *out)
        g_string_append_c(out, '\n');
 }
 
-static int receive(struct sr_output *o, const struct sr_dev_inst *sdi,
-               const struct sr_datafeed_packet *packet, GString **out)
+static int receive(struct sr_output *o, const struct sr_datafeed_packet *packet,
+               GString **out)
 {
        const struct sr_datafeed_analog *analog;
        struct sr_channel *ch;
@@ -215,8 +215,6 @@ static int receive(struct sr_output *o, const struct sr_dev_inst *sdi,
        const float *fdata;
        int i, p;
 
-       (void)sdi;
-
        *out = NULL;
        if (!o || !o->sdi)
                return SR_ERR_ARG;