]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/teleinfo/api.c
Consistently use 'devopts' variable across all drivers.
[libsigrok.git] / src / hardware / teleinfo / api.c
index 48d775434cad5e3b8f6889775024e14002ab9ec2..9b487f19341159932ddd98c2de80d639cf7f2989 100644 (file)
@@ -28,7 +28,7 @@ static const uint32_t hwopts[] = {
        SR_CONF_SERIALCOMM,
 };
 
-static const uint32_t hwcaps[] = {
+static const uint32_t devopts[] = {
        SR_CONF_ENERGYMETER,
        SR_CONF_LIMIT_SAMPLES,
        SR_CONF_LIMIT_MSEC,
@@ -221,7 +221,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;