]> sigrok.org Git - libsigrok.git/blobdiff - hardware/lascar-el-usb/api.c
Deprecate SR_DI_HWCAPS.
[libsigrok.git] / hardware / lascar-el-usb / api.c
index 25932ac74106df886bc9aa7ad791aa62dbd72fd8..c9ccbfda1a967d9054b1bc05d8b659629000d809 100644 (file)
@@ -221,9 +221,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_DI_HWOPTS:
                *data = hwopts;
                break;
-       case SR_DI_HWCAPS:
-               *data = hwcaps;
-               break;
        default:
                return SR_ERR_ARG;
        }
@@ -267,6 +264,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;
        default:
                return SR_ERR_ARG;
        }