]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/lecroy-xstream/api.c
drivers: Consistently name SCPI helper functions 'probe_device'.
[libsigrok.git] / src / hardware / lecroy-xstream / api.c
index dc6ee2bcd795645bd9b3ec9740a97d506c04c4c2..2799f6fbee19c377bb274e7906004e3af2d5ad9b 100644 (file)
@@ -52,7 +52,7 @@ static const uint32_t devopts_cg_analog[] = {
        SR_CONF_COUPLING | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
 };
 
-static struct sr_dev_inst *probe_serial_device(struct sr_scpi_dev_inst *scpi)
+static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
 {
        struct sr_dev_inst *sdi;
        struct dev_context *devc;
@@ -101,7 +101,7 @@ fail:
 
 static GSList *scan(struct sr_dev_driver *di, GSList *options)
 {
-       return sr_scpi_scan(di->context, options, probe_serial_device);
+       return sr_scpi_scan(di->context, options, probe_device);
 }
 
 static void clear_helper(struct dev_context *devc)
@@ -401,6 +401,7 @@ static int config_list(uint32_t key, GVariant **data,
        default:
                return SR_ERR_NA;
        }
+
        return SR_OK;
 }