drivers: Consistently use the name trigger_matches[] everywhere.
This commit is contained in:
parent
9e411f4be8
commit
76d10d1324
|
@ -38,7 +38,7 @@ static const uint32_t devopts[] = {
|
||||||
SR_CONF_NUM_LOGIC_CHANNELS | SR_CONF_GET,
|
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_ZERO,
|
||||||
SR_TRIGGER_ONE,
|
SR_TRIGGER_ONE,
|
||||||
SR_TRIGGER_RISING,
|
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));
|
*data = std_gvar_samplerates_steps(ARRAY_AND_SIZE(samplerates));
|
||||||
break;
|
break;
|
||||||
case SR_CONF_TRIGGER_MATCH:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
return SR_ERR_NA;
|
return SR_ERR_NA;
|
||||||
|
|
|
@ -113,7 +113,7 @@ static const uint32_t devopts[] = {
|
||||||
SR_CONF_CAPTURE_RATIO | SR_CONF_GET | SR_CONF_SET,
|
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_ZERO,
|
||||||
SR_TRIGGER_ONE,
|
SR_TRIGGER_ONE,
|
||||||
SR_TRIGGER_RISING,
|
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);
|
*data = std_gvar_samplerates(devc->samplerates, devc->num_samplerates);
|
||||||
break;
|
break;
|
||||||
case SR_CONF_TRIGGER_MATCH:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
return SR_ERR_NA;
|
return SR_ERR_NA;
|
||||||
|
|
|
@ -57,7 +57,7 @@ static const uint32_t devopts[] = {
|
||||||
SR_CONF_CAPTURE_RATIO | SR_CONF_GET | SR_CONF_SET,
|
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_ZERO,
|
||||||
SR_TRIGGER_ONE,
|
SR_TRIGGER_ONE,
|
||||||
SR_TRIGGER_RISING,
|
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);
|
*data = g_variant_builder_end(&gvb);
|
||||||
break;
|
break;
|
||||||
case SR_CONF_TRIGGER_MATCH:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
return SR_ERR_NA;
|
return SR_ERR_NA;
|
||||||
|
|
Loading…
Reference in New Issue