X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fdriver.c;h=850501df6172d8e718b77a3f91d1ffcd6aa63dbd;hb=014359e3293ef0cdc61fbde4f63dc0a9da98179d;hp=47356fd088239ea4df5a90bf8c5ad1017d90b422;hpb=a56f1480949e84e94dad2afcdf9f758988a4aff9;p=libsigrok.git diff --git a/hardware/chronovu-la8/driver.c b/hardware/chronovu-la8/driver.c index 47356fd0..850501df 100644 --- a/hardware/chronovu-la8/driver.c +++ b/hardware/chronovu-la8/driver.c @@ -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) {