drivers: Consistently name SCPI helper functions 'probe_device'.
This commit is contained in:
parent
21fe5dba36
commit
373e92a491
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue