]> sigrok.org Git - libsigrok.git/blobdiff - hardware/chronovu-la8/driver.c
sr/drivers: obsolete SR_HWCAP_PROBECONFIG
[libsigrok.git] / hardware / chronovu-la8 / driver.c
index 47356fd088239ea4df5a90bf8c5ad1017d90b422..850501df6172d8e718b77a3f91d1ffcd6aa63dbd 100644 (file)
@@ -319,19 +319,19 @@ SR_PRIV int la8_reset(struct dev_context *devc)
        return SR_OK;
 }
 
-SR_PRIV int configure_probes(struct dev_context *devc, const GSList *probes)
+SR_PRIV int configure_probes(const struct sr_dev_inst *sdi)
 {
+       struct dev_context *devc;
        const struct sr_probe *probe;
        const GSList *l;
        uint8_t probe_bit;
        char *tc;
 
-       /* Note: Caller checked that devc != NULL. */
-
+       devc = sdi->priv;
        devc->trigger_pattern = 0;
        devc->trigger_mask = 0; /* Default to "don't care" for all probes. */
 
-       for (l = probes; l; l = l->next) {
+       for (l = sdi->probes; l; l = l->next) {
                probe = (struct sr_probe *)l->data;
 
                if (!probe) {