static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
(void)sdi;
switch (info_id) {
*data = &devc->supp_rates;
break;
default:
- sr_err("Invalid info_id: %d.", info_id);
return SR_ERR_ARG;
}
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
(void)sdi;
switch (info_id) {
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
(void)sdi;
switch (info_id) {
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
(void)sdi;
switch (info_id) {
*data = hwcaps;
break;
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
/* TODO */
(void)data;
(void)sdi;
switch (info_id) {
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}
*data = coupling;
break;
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}
*data = hwcaps;
break;
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}
return SR_ERR_ARG;
break;
default:
- sr_err("%s: Unknown info_id %d.", __func__, info_id);
return SR_ERR_ARG;
break;
}
*data = hwcaps;
break;
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}