]> sigrok.org Git - libsigrok.git/commitdiff
drivers: Consistently name SCPI helper functions 'probe_device'.
authorUwe Hermann <redacted>
Mon, 31 Jul 2017 06:43:57 +0000 (08:43 +0200)
committerUwe Hermann <redacted>
Mon, 31 Jul 2017 14:23:32 +0000 (16:23 +0200)
src/hardware/hameg-hmo/api.c
src/hardware/lecroy-xstream/api.c
src/hardware/rohde-schwarz-sme-0x/api.c
src/hardware/yokogawa-dlm/api.c

index 7783dec172f679bc0e94b8f56947761354eace39..5e6ad66c25f3d23d4a2ef1307d0845899d178ee4 100644 (file)
@@ -47,7 +47,7 @@ enum {
        CG_DIGITAL,
 };
 
-static struct sr_dev_inst *hmo_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;
@@ -96,7 +96,7 @@ fail:
 
 static GSList *scan(struct sr_dev_driver *di, GSList *options)
 {
-       return sr_scpi_scan(di->context, options, hmo_probe_serial_device);
+       return sr_scpi_scan(di->context, options, probe_device);
 }
 
 static void clear_helper(struct dev_context *devc)
index d1040b19450564c627375ddd05b66b05cf8e4079..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)
index 866ab3c74690c980bb44cfbd2dbe7dfa46373ed8..6a719e878015dd5b45baa793478f8f93e620f89f 100644 (file)
@@ -105,7 +105,7 @@ static int rs_init_device(struct sr_dev_inst *sdi)
        return SR_OK;
 }
 
-static struct sr_dev_inst *rs_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;
@@ -152,7 +152,7 @@ fail:
 
 static GSList *scan(struct sr_dev_driver *di, GSList *options)
 {
-       return sr_scpi_scan(di->context, options, rs_probe_serial_device);
+       return sr_scpi_scan(di->context, options, probe_device);
 }
 
 static int dev_open(struct sr_dev_inst *sdi)
index 21b7e40a06f4bba765778f9028f3941706c15ee2..ebe73216000f12c293794b846e69efd4875c19e1 100644 (file)
@@ -62,7 +62,7 @@ enum {
        CG_DIGITAL,
 };
 
-static struct sr_dev_inst *probe_usbtmc_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;
@@ -117,7 +117,7 @@ fail:
 
 static GSList *scan(struct sr_dev_driver *di, GSList *options)
 {
-       return sr_scpi_scan(di->context, options, probe_usbtmc_device);
+       return sr_scpi_scan(di->context, options, probe_device);
 }
 
 static void clear_helper(struct dev_context *devc)