fx2lafw: don't use deprecated hwcap_get_all() driver API call
This commit is contained in:
parent
46c7a4daa7
commit
cbd798f400
|
@ -611,18 +611,15 @@ static int hw_cleanup(void)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hw_info_get(int dev_info_id, const void **data,
|
static int hw_info_get(int info_id, const void **data,
|
||||||
const struct sr_dev_inst *sdi)
|
const struct sr_dev_inst *sdi)
|
||||||
{
|
{
|
||||||
struct context *ctx;
|
struct context *ctx;
|
||||||
|
|
||||||
switch (dev_info_id) {
|
switch (info_id) {
|
||||||
case SR_DI_INST:
|
case SR_DI_INST:
|
||||||
*data = sdi;
|
*data = sdi;
|
||||||
break;
|
break;
|
||||||
case SR_DI_HWOPTS:
|
|
||||||
*data = NULL;
|
|
||||||
break;
|
|
||||||
case SR_DI_HWCAPS:
|
case SR_DI_HWCAPS:
|
||||||
*data = hwcaps;
|
*data = hwcaps;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue