]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
Deprecate SR_DI_HWCAPS.
[libsigrok.git] / hardware / demo / demo.c
index 345468c41be550174350ecd2ea4b7984edf37499..df6a2543bad4d2190ba05d1a5f892c3f50cab8db 100644 (file)
@@ -231,9 +231,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        (void)sdi;
 
        switch (id) {
-       case SR_DI_HWCAPS:
-               *data = hwcaps;
-               break;
        case SR_CONF_SAMPLERATE:
                *data = &cur_samplerate;
                break;
@@ -298,6 +295,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        (void)sdi;
 
        switch (key) {
+       case SR_CONF_DEVICE_OPTIONS:
+               *data = hwcaps;
+               break;
        case SR_CONF_SAMPLERATE:
                *data = &samplerates;
                break;