};
static const struct sr_samplerates samplerates = {
- 0,
- 0,
- 0,
- supported_samplerates,
+ .low = 0,
+ .high = 0,
+ .step = 0,
+ .list = supported_samplerates,
};
static const int hwcaps[] = {
};
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 const struct sr_samplerates samplerates = {
- 0,
- 0,
- 0,
- supported_samplerates,
+ .low = 0,
+ .high = 0,
+ .step = 0,
+ .list = supported_samplerates,
};
SR_PRIV struct sr_dev_driver fx2lafw_driver_info;
"0", "1", "2", "3", "4", "5", "6", "7", NULL
};
-/*supported samplerates */
static const struct sr_samplerates samplerates = {
- SR_HZ(100),
- SR_MHZ(200),
- SR_HZ(100),
- NULL,
+ .low = SR_HZ(100),
+ .high = SR_MHZ(200),
+ .step = SR_HZ(100),
+ .list = NULL,
};
SR_PRIV struct sr_dev_driver link_mso19_driver_info;
NULL,
};
-/* default supported samplerates, can be overridden by device metadata */
+/* Default supported samplerates, can be overridden by device metadata. */
static const struct sr_samplerates samplerates = {
- SR_HZ(10),
- SR_MHZ(200),
- SR_HZ(1),
- NULL,
+ .low = SR_HZ(10),
+ .high = SR_MHZ(200),
+ .step = SR_HZ(1),
+ .list = NULL,
};
SR_PRIV struct sr_dev_driver ols_driver_info;
};
static const struct sr_samplerates samplerates = {
- 0,
- 0,
- 0,
- supported_samplerates,
+ .low = 0,
+ .high = 0,
+ .step = 0,
+ .list = supported_samplerates,
};
/* Private, per-device-instance driver context. */