]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/mic-985xx/api.c
Consistently use 'devopts' variable across all drivers.
[libsigrok.git] / src / hardware / mic-985xx / api.c
index 0a1e25825ffaff488f6a35d1169638f5d05a02be..a83b10193e824c89229a9280dc47f6ff565515af 100644 (file)
@@ -25,7 +25,7 @@ static const uint32_t hwopts[] = {
        SR_CONF_SERIALCOMM,
 };
 
-static const uint32_t hwcaps[] = {
+static const uint32_t devopts[] = {
        SR_CONF_THERMOMETER,
        SR_CONF_HYGROMETER,
        SR_CONF_LIMIT_SAMPLES,
@@ -203,7 +203,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                break;
        case SR_CONF_DEVICE_OPTIONS:
                *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
-                               hwcaps, ARRAY_SIZE(hwcaps), sizeof(uint32_t));
+                               devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
                break;
        default:
                return SR_ERR_NA;