]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Renamed fx2lafw_dev to ctx in hw_dev_info_get
authorJoel Holdsworth <redacted>
Mon, 27 Feb 2012 19:42:08 +0000 (19:42 +0000)
committerJoel Holdsworth <redacted>
Mon, 27 Feb 2012 21:58:25 +0000 (21:58 +0000)
hardware/fx2lafw/fx2lafw.c

index f4997a86eeb50f9e5ef2737fcf9a62e787e15c00..36362f8daada1d420329d501103d8c5f9710af46 100644 (file)
@@ -188,17 +188,17 @@ static int hw_cleanup(void)
 static void *hw_dev_info_get(int device_index, int device_info_id)
 {
        struct sr_dev_inst *sdi;
-       struct fx2lafw_device *fx2lafw_dev;
+       struct fx2lafw_device *ctx;
 
        if (!(sdi = sr_dev_inst_get(dev_insts, device_index)))
                return NULL;
-       fx2lafw_dev = sdi->priv;
+       ctx = sdi->priv;
 
        switch (device_info_id) {
        case SR_DI_INST:
                return sdi;
        case SR_DI_NUM_PROBES:
-               return GINT_TO_POINTER(fx2lafw_dev->profile->num_probes);
+               return GINT_TO_POINTER(ctx->profile->num_probes);
        case SR_DI_PROBE_NAMES:
                return fx2lafw_probe_names;
        case SR_DI_SAMPLERATES: