]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/colead-slm/api.c
Consistently use 'scanopts' variable across all drivers.
[libsigrok.git] / src / hardware / colead-slm / api.c
index 2e227a65888be386e0d4e0026b3175e689ca689f..d299693f95b49be54694c2c8bc7958b47bdd8d79 100644 (file)
@@ -30,7 +30,7 @@
 /* The Colead SL-5868P uses this. */
 #define SERIALCOMM "2400/8n1"
 
-static const uint32_t hwopts[] = {
+static const uint32_t scanopts[] = {
        SR_CONF_CONN,
        SR_CONF_SERIALCOMM,
 };
@@ -176,7 +176,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
        switch (key) {
        case SR_CONF_SCAN_OPTIONS:
                *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
-                               hwopts, ARRAY_SIZE(hwopts), sizeof(uint32_t));
+                               scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));
                break;
        case SR_CONF_DEVICE_OPTIONS:
                *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,