static int config_get(uint32_t key, GVariant **data,
const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
- int ret, channel;
+ int channel;
const struct dev_context *devc;
const struct sr_channel *ch;
- const struct sr_key_info *ki;
-
- ki = sr_key_info_get(SR_KEY_CONFIG, key);
-
- sr_info("%s(%d, %s)", __func__, key, (ki != NULL) ? ki->name : NULL);
if (!sdi)
return SR_ERR_ARG;
} else {
ch = cg->channels->data;
channel = ch->index;
- sr_info("%s(%d, %s, %d)", __func__, key,
- (ki != NULL) ? ki->name : NULL, channel);
- ret = SR_OK;
switch (key) {
case SR_CONF_VOLTAGE:
*data = g_variant_new_double(
}
}
- return ret;
+ return SR_OK;
}
static int config_set(uint32_t key, GVariant *data,
struct dev_context *devc;
devc = sdi->priv;
- sr_info("%s(%d)", __func__, key);
ret = SR_OK;
struct dev_context *devc;
struct sr_serial_dev_inst *serial;
- sr_info("%s()", __func__);
devc = sdi->priv;
sr_sw_limits_acquisition_start(&devc->limits);
return SR_OK;
}
-SR_PRIV const struct sr_dev_driver gwinstek_gpd_driver_info = {
+static struct sr_dev_driver gwinstek_gpd_driver_info = {
.name = "gwinstek-gpd",
.longname = "GW Instek GPD",
.api_version = 1,