]> sigrok.org Git - libsigrok.git/commitdiff
drivers: Consistently use the name trigger_matches[] everywhere.
authorUwe Hermann <redacted>
Fri, 21 Jul 2017 06:46:51 +0000 (08:46 +0200)
committerUwe Hermann <redacted>
Fri, 21 Jul 2017 15:06:40 +0000 (17:06 +0200)
src/hardware/beaglelogic/api.c
src/hardware/fx2lafw/api.c
src/hardware/saleae-logic16/api.c

index 1ed11a628f8faa11549cbe8d1a3620912269ac09..b91b7bf3e0d8afb9be0aef2b6d86d96e0225a439 100644 (file)
@@ -38,7 +38,7 @@ static const uint32_t devopts[] = {
        SR_CONF_NUM_LOGIC_CHANNELS | SR_CONF_GET,
 };
 
-static const int32_t soft_trigger_matches[] = {
+static const int32_t trigger_matches[] = {
        SR_TRIGGER_ZERO,
        SR_TRIGGER_ONE,
        SR_TRIGGER_RISING,
@@ -248,7 +248,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                *data = std_gvar_samplerates_steps(ARRAY_AND_SIZE(samplerates));
                break;
        case SR_CONF_TRIGGER_MATCH:
-               *data = std_gvar_array_i32(ARRAY_AND_SIZE(soft_trigger_matches));
+               *data = std_gvar_array_i32(ARRAY_AND_SIZE(trigger_matches));
                break;
        default:
                return SR_ERR_NA;
index 5b6dd9d1c1200b4e1190feb03207a2baea7877a4..bffd2534f60f1121dea408240be3a5fe50391447 100644 (file)
@@ -113,7 +113,7 @@ static const uint32_t devopts[] = {
        SR_CONF_CAPTURE_RATIO | SR_CONF_GET | SR_CONF_SET,
 };
 
-static const int32_t soft_trigger_matches[] = {
+static const int32_t trigger_matches[] = {
        SR_TRIGGER_ZERO,
        SR_TRIGGER_ONE,
        SR_TRIGGER_RISING,
@@ -543,7 +543,7 @@ static int config_list(uint32_t key, GVariant **data,
                *data = std_gvar_samplerates(devc->samplerates, devc->num_samplerates);
                break;
        case SR_CONF_TRIGGER_MATCH:
-               *data = std_gvar_array_i32(ARRAY_AND_SIZE(soft_trigger_matches));
+               *data = std_gvar_array_i32(ARRAY_AND_SIZE(trigger_matches));
                break;
        default:
                return SR_ERR_NA;
index 66dd9ba53ca91145f52ddd0eaa349607a3887e87..2aca1fac54038c60c3a21dc0900e4a337d793e12 100644 (file)
@@ -57,7 +57,7 @@ static const uint32_t devopts[] = {
        SR_CONF_CAPTURE_RATIO | SR_CONF_GET | SR_CONF_SET,
 };
 
-static const int32_t soft_trigger_matches[] = {
+static const int32_t trigger_matches[] = {
        SR_TRIGGER_ZERO,
        SR_TRIGGER_ONE,
        SR_TRIGGER_RISING,
@@ -524,7 +524,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                *data = g_variant_builder_end(&gvb);
                break;
        case SR_CONF_TRIGGER_MATCH:
-               *data = std_gvar_array_i32(ARRAY_AND_SIZE(soft_trigger_matches));
+               *data = std_gvar_array_i32(ARRAY_AND_SIZE(trigger_matches));
                break;
        default:
                return SR_ERR_NA;