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;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
struct context *ctx;
|
||||
|
||||
switch (dev_info_id) {
|
||||
switch (info_id) {
|
||||
case SR_DI_INST:
|
||||
*data = sdi;
|
||||
break;
|
||||
case SR_DI_HWOPTS:
|
||||
*data = NULL;
|
||||
break;
|
||||
case SR_DI_HWCAPS:
|
||||
*data = hwcaps;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue