]> sigrok.org Git - libsigrok.git/blobdiff - hardware/tondaj-sl-814/api.c
Deprecate SR_DI_HWOPTS.
[libsigrok.git] / hardware / tondaj-sl-814 / api.c
index aa3fe6ff32eb534499f2eef1c2e47d1ee5f75279..47c2e67fecb8e8ebb4fffe1d06736685b81157de 100644 (file)
@@ -200,12 +200,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        (void)sdi;
 
        switch (id) {
-       case SR_DI_HWOPTS:
-               *data = hwopts;
-               break;
-       case SR_DI_HWCAPS:
-               *data = hwcaps;
-               break;
        default:
                return SR_ERR_ARG;
        }
@@ -244,6 +238,12 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        (void)sdi;
 
        switch (key) {
+       case SR_CONF_SCAN_OPTIONS:
+               *data = hwopts;
+               break;
+       case SR_CONF_DEVICE_OPTIONS:
+               *data = hwcaps;
+               break;
        default:
                return SR_ERR_ARG;
        }