]> sigrok.org Git - libsigrok.git/blobdiff - output/analog.c
Remove obsolete API call sr_parse_triggerstring().
[libsigrok.git] / output / analog.c
index 286c50be9768d2c37ae58fddaed081acde25df05..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;
@@ -264,7 +262,6 @@ static int cleanup(struct sr_output *o)
 SR_PRIV struct sr_output_format output_analog = {
        .id = "analog",
        .description = "Analog data",
-       .df_type = SR_DF_ANALOG,
        .init = init,
        .receive = receive,
        .cleanup = cleanup