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

index 6e6427b10c061cbf44afc07c6f522d5d529da159..f4997a86eeb50f9e5ef2737fcf9a62e787e15c00 100644 (file)
@@ -99,7 +99,7 @@ static int hw_init(const char *deviceinfo)
        struct sr_dev_inst *sdi;
        struct libusb_device_descriptor des;
        struct fx2lafw_profile *fx2lafw_prof;
-       struct fx2lafw_device *fx2lafw_dev;
+       struct fx2lafw_device *ctx;
        libusb_device **devlist;
        int err;
        int devcnt = 0;
@@ -141,9 +141,9 @@ static int hw_init(const char *deviceinfo)
                if(!sdi)
                        return 0;
 
-               fx2lafw_dev = fx2lafw_device_new();
-               fx2lafw_dev->profile = fx2lafw_prof;
-               sdi->priv = fx2lafw_dev;
+               ctx = fx2lafw_device_new();
+               ctx->profile = fx2lafw_prof;
+               sdi->priv = ctx;
                device_instances = g_slist_append(dev_insts, sdi);
 
                devcnt++;