Typos and consistency fixes.
This commit is contained in:
parent
d4ccb6bd8f
commit
af945a6625
|
@ -908,7 +908,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 = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
||||||
trigger_matches, ARRAY_SIZE(trigger_matches),
|
trigger_matches, ARRAY_SIZE(trigger_matches),
|
||||||
sizeof(int32_t));
|
sizeof(int32_t));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -321,7 +321,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 = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
||||||
soft_trigger_matches, ARRAY_SIZE(soft_trigger_matches),
|
soft_trigger_matches, ARRAY_SIZE(soft_trigger_matches),
|
||||||
sizeof(int32_t));
|
sizeof(int32_t));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -379,7 +379,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
||||||
case SR_CONF_TRIGGER_MATCH:
|
case SR_CONF_TRIGGER_MATCH:
|
||||||
if (!sdi || !sdi->priv || !(devc = sdi->priv) || !devc->prof)
|
if (!sdi || !sdi->priv || !(devc = sdi->priv) || !devc->prof)
|
||||||
return SR_ERR_BUG;
|
return SR_ERR_BUG;
|
||||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
||||||
trigger_matches, devc->prof->num_trigger_matches,
|
trigger_matches, devc->prof->num_trigger_matches,
|
||||||
sizeof(int32_t));
|
sizeof(int32_t));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -483,7 +483,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
||||||
model->devopts, model->num_devopts, sizeof(uint32_t));
|
model->devopts, model->num_devopts, sizeof(uint32_t));
|
||||||
} else if (cg_type == CG_ANALOG) {
|
} else if (cg_type == CG_ANALOG) {
|
||||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||||
model->analog_devopts, model->num_analog_devopts, sizeof(uint32_t));
|
model->analog_devopts, model->num_analog_devopts, sizeof(uint32_t));
|
||||||
} else {
|
} else {
|
||||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||||
NULL, 0, sizeof(uint32_t));
|
NULL, 0, sizeof(uint32_t));
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
* @return the corresponding signed integer
|
* @return the corresponding signed integer
|
||||||
*/
|
*/
|
||||||
#define RL16S(x) ((int16_t) \
|
#define RL16S(x) ((int16_t) \
|
||||||
(((unsigned)((const uint8_t*)(x))[1] << 8) | \
|
(((unsigned)((const uint8_t*)(x))[1] << 8) | \
|
||||||
(unsigned)((const uint8_t*)(x))[0]))
|
(unsigned)((const uint8_t*)(x))[0]))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue