]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-dmm/api.c
Deprecate SR_DI_HWCAPS.
[libsigrok.git] / hardware / uni-t-dmm / api.c
index 7c4c6b89cd3cf5a8d109621971706b85c8911067..7511283823b145c95f3af1aca47ca5e520dc96a5 100644 (file)
@@ -196,10 +196,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;
-               sr_spew("%s: Returning hwcaps.", __func__);
-               break;
        case SR_CONF_SAMPLERATE:
                /* TODO: Get rid of this. */
                *data = NULL;
@@ -255,6 +251,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;
        }