fx2lafw: Renamed fx2lafw_dev to ctx in hw_init

This commit is contained in:
Joel Holdsworth 2012-02-27 19:41:10 +00:00
parent cac0bbaafd
commit 90282c82bc
1 changed files with 4 additions and 4 deletions

View File

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