]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
Drivers: Explicitly list sr_samplerates fields.
[libsigrok.git] / hardware / demo / demo.c
index 60a511f2532f6d4321d2fbf1ff225c2affd0b212..be989fe70cca85fd4b1cade5b8aff44752cd0b30 100644 (file)
@@ -94,10 +94,10 @@ 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[] = {