From: Uwe Hermann Date: Fri, 27 Mar 2015 07:43:45 +0000 (+0100) Subject: Minor cosmetics and consistency fixes. X-Git-Tag: libsigrok-0.4.0~547 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2ea67fc9bf2b8e777aa45f88477f8880e5bc6286;p=libsigrok.git Minor cosmetics and consistency fixes. --- diff --git a/src/hardware/link-mso19/api.c b/src/hardware/link-mso19/api.c index dbc66fdd..d75debb8 100644 --- a/src/hardware/link-mso19/api.c +++ b/src/hardware/link-mso19/api.c @@ -268,14 +268,14 @@ static int cleanup(const struct sr_dev_driver *di) return dev_clear(); } -static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi, +static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { struct dev_context *devc; (void)cg; - switch (id) { + switch (key) { case SR_CONF_SAMPLERATE: if (sdi) { devc = sdi->priv; @@ -290,7 +290,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi, return SR_OK; } -static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi, +static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { int ret; @@ -306,7 +306,7 @@ static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi, if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; - switch (id) { + switch (key) { case SR_CONF_SAMPLERATE: // FIXME return mso_configure_rate(sdi, g_variant_get_uint64(data)); diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 3fbf3d72..fd2293e8 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -415,8 +415,7 @@ SR_PRIV int rigol_ds_channel_start(const struct sr_dev_inst *sdi) sr_dbg("Starting reading data from channel %d", ch->index + 1); - switch (devc->model->series->protocol) - { + switch (devc->model->series->protocol) { case PROTOCOL_V1: case PROTOCOL_V2: if (ch->type == SR_CHANNEL_LOGIC) {