fx2lafw: Renamed fx2lafw_dev to ctx in hw_dev_info_get

This commit is contained in:
Joel Holdsworth 2012-02-27 19:42:08 +00:00
parent 90282c82bc
commit cdfdd71101
1 changed files with 3 additions and 3 deletions

View File

@ -188,17 +188,17 @@ static int hw_cleanup(void)
static void *hw_dev_info_get(int device_index, int device_info_id) static void *hw_dev_info_get(int device_index, int device_info_id)
{ {
struct sr_dev_inst *sdi; struct sr_dev_inst *sdi;
struct fx2lafw_device *fx2lafw_dev; struct fx2lafw_device *ctx;
if (!(sdi = sr_dev_inst_get(dev_insts, device_index))) if (!(sdi = sr_dev_inst_get(dev_insts, device_index)))
return NULL; return NULL;
fx2lafw_dev = sdi->priv; ctx = sdi->priv;
switch (device_info_id) { switch (device_info_id) {
case SR_DI_INST: case SR_DI_INST:
return sdi; return sdi;
case SR_DI_NUM_PROBES: 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: case SR_DI_PROBE_NAMES:
return fx2lafw_probe_names; return fx2lafw_probe_names;
case SR_DI_SAMPLERATES: case SR_DI_SAMPLERATES: