]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/api.c
Deprecate SR_DI_TRIGGER_SOURCES.
[libsigrok.git] / hardware / hantek-dso / api.c
index 920a3c56a0e90467643b263f3941b64fd229d5e2..1e0a4a17a12d44cf18f97fb658d41d3b478c205c 100644 (file)
@@ -432,18 +432,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_DI_HWCAPS:
                *data = hwcaps;
                break;
-       case SR_DI_TIMEBASES:
-               *data = timebases;
-               break;
-       case SR_DI_TRIGGER_SOURCES:
-               *data = trigger_sources;
-               break;
-       case SR_DI_FILTERS:
-               *data = filter_targets;
-               break;
-       case SR_DI_VDIVS:
-               *data = vdivs;
-               break;
        /* TODO remove this */
        case SR_CONF_SAMPLERATE:
                *data = &tmp;
@@ -586,6 +574,18 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        case SR_CONF_COUPLING:
                *data = coupling;
                break;
+       case SR_CONF_VDIV:
+               *data = vdivs;
+               break;
+       case SR_CONF_FILTER:
+               *data = filter_targets;
+               break;
+       case SR_CONF_TIMEBASE:
+               *data = timebases;
+               break;
+       case SR_CONF_TRIGGER_SOURCE:
+               *data = trigger_sources;
+               break;
        default:
                return SR_ERR_ARG;
        }