};
static const struct sr_samplerates samplerates = {
- SR_HZ(1),
- SR_GHZ(1),
- SR_HZ(1),
- NULL,
+ .low = SR_HZ(1),
+ .high = SR_GHZ(1),
+ .step = SR_HZ(1),
+ .list = NULL,
};
static const char *pattern_strings[] = {
static GSList *hw_dev_list(void)
{
- struct drv_context *drvc;
-
- drvc = di->priv;
-
- return drvc->instances;
+ return ((struct drv_context *)(di->priv))->instances;
}
static int hw_dev_open(struct sr_dev_inst *sdi)