chronovu-la8: scan/info_get fixes
This commit is contained in:
parent
d7bbecfdb9
commit
cfe8a84dd7
|
@ -141,7 +141,7 @@ static GSList *hw_scan(GSList *options)
|
||||||
sr_err("la8: %s: sr_dev_inst_new failed", __func__);
|
sr_err("la8: %s: sr_dev_inst_new failed", __func__);
|
||||||
goto err_close_ftdic;
|
goto err_close_ftdic;
|
||||||
}
|
}
|
||||||
|
sdi->driver = cdi;
|
||||||
sdi->priv = ctx;
|
sdi->priv = ctx;
|
||||||
|
|
||||||
devices = g_slist_append(devices, sdi);
|
devices = g_slist_append(devices, sdi);
|
||||||
|
@ -305,6 +305,8 @@ static int hw_info_get(int info_id, const void **data,
|
||||||
} else
|
} else
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return SR_ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
return SR_OK;
|
return SR_OK;
|
||||||
|
|
Loading…
Reference in New Issue