X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hardware%2Fzeroplus-logic-cube%2Fapi.c;h=f30551e828e5287531d1c7e3e9d8508b1c3bec0f;hb=91aea754aaed0f0f2a6fc4b2b875f0d0b7c01f8e;hp=63b2efd9a9edd3b7ef3f3d0ed5dd183284ba9599;hpb=53b4680fceab9351fc87b8c5b34854733f5fdac0;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/api.c b/hardware/zeroplus-logic-cube/api.c index 63b2efd9..f30551e8 100644 --- a/hardware/zeroplus-logic-cube/api.c +++ b/hardware/zeroplus-logic-cube/api.c @@ -127,7 +127,7 @@ static int dev_close(struct sr_dev_inst *sdi); static int configure_probes(const struct sr_dev_inst *sdi) { struct dev_context *devc; - const struct sr_probe *probe; + const struct sr_channel *probe; const GSList *l; int probe_bit, stage, i; char *tc; @@ -143,7 +143,7 @@ static int configure_probes(const struct sr_dev_inst *sdi) stage = -1; for (l = sdi->probes; l; l = l->next) { - probe = (struct sr_probe *)l->data; + probe = (struct sr_channel *)l->data; if (probe->enabled == FALSE) continue; probe_bit = 1 << (probe->index); @@ -170,7 +170,7 @@ static int configure_probes(const struct sr_dev_inst *sdi) { struct dev_context *devc; const GSList *l; - const struct sr_probe *probe; + const struct sr_channel *probe; char *tc; int type; @@ -178,7 +178,7 @@ static int configure_probes(const struct sr_dev_inst *sdi) devc = sdi->priv; for (l = sdi->probes; l; l = l->next) { - probe = (struct sr_probe *)l->data; + probe = (struct sr_channel *)l->data; if (probe->enabled == FALSE) continue; @@ -247,7 +247,7 @@ static int init(struct sr_context *sr_ctx) static GSList *scan(GSList *options) { struct sr_dev_inst *sdi; - struct sr_probe *probe; + struct sr_channel *probe; struct drv_context *drvc; struct dev_context *devc; const struct zp_model *prof;