]> sigrok.org Git - libsigrok.git/blobdiff - hardware/conrad-digi-35-cpu/api.c
build: Portability fixes.
[libsigrok.git] / hardware / conrad-digi-35-cpu / api.c
index 9d5f9d0d49e27b24c7ff6123ddb8bd515e06f1d2..01adcef8ab2fec517fb322b0024d5ce5dd991122 100644 (file)
@@ -95,13 +95,13 @@ static GSList *scan(GSList *options)
 
        sr_spew("Conrad DIGI 35 CPU assumed at %s.", conn);
 
-       if (!(sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, "Conrad", "DIGI 35 CPU", "")))
+       if (!(sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, "Conrad", "DIGI 35 CPU", NULL)))
                return NULL;
 
        sdi->conn = serial;
        sdi->priv = NULL;
        sdi->driver = di;
-       if (!(ch = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, "CH1")))
+       if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "CH1")))
                return NULL;
        sdi->channels = g_slist_append(sdi->channels, ch);