std_serial_dev_acquisition_stop(): Drop unneeded parameter.
This commit is contained in:
parent
695dc859c1
commit
6525d819ee
|
@ -246,7 +246,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -255,7 +255,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -376,7 +376,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -406,7 +406,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
if (sdi->status != SR_ST_ACTIVE)
|
||||
return SR_ERR_DEV_CLOSED;
|
||||
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, int idx)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -521,7 +521,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
if (sdi && (devc = sdi->priv) && devc->limit_msec)
|
||||
g_timer_stop(devc->elapsed_msec);
|
||||
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
if (sdi->status != SR_ST_ACTIVE)
|
||||
return SR_ERR_DEV_CLOSED;
|
||||
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ SR_PRIV int mso_receive_data(int fd, int revents, void *cb_data)
|
|||
|
||||
if (devc->limit_samples && devc->num_samples >= devc->limit_samples) {
|
||||
sr_info("Requested number of samples reached.");
|
||||
sdi->driver->dev_acquisition_stop(sdi, sdi);
|
||||
sdi->driver->dev_acquisition_stop(sdi);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -414,7 +414,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, int idx)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -831,7 +831,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
if (sdi && (devc = sdi->priv) && devc->limit_msec)
|
||||
g_timer_stop(devc->elapsed_msec);
|
||||
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -281,7 +281,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
if (sdi && (devc = sdi->priv) && devc->limit_msec)
|
||||
g_timer_stop(devc->elapsed_msec);
|
||||
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi, std_serial_dev_close,
|
||||
return std_serial_dev_acquisition_stop(sdi, std_serial_dev_close,
|
||||
sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -929,6 +929,6 @@ SR_PRIV int es51919_serial_acquisition_start(const struct sr_dev_inst *sdi)
|
|||
|
||||
SR_PRIV int es51919_serial_acquisition_stop(struct sr_dev_inst *sdi)
|
||||
{
|
||||
return std_serial_dev_acquisition_stop(sdi, sdi,
|
||||
return std_serial_dev_acquisition_stop(sdi,
|
||||
std_serial_dev_close, sdi->conn, LOG_PREFIX);
|
||||
}
|
||||
|
|
|
@ -852,7 +852,7 @@ SR_PRIV int std_init(struct sr_context *sr_ctx, struct sr_dev_driver *di,
|
|||
#ifdef HAVE_LIBSERIALPORT
|
||||
SR_PRIV int std_serial_dev_open(struct sr_dev_inst *sdi);
|
||||
SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
|
||||
void *cb_data, dev_close_callback dev_close_fn,
|
||||
dev_close_callback dev_close_fn,
|
||||
struct sr_serial_dev_inst *serial, const char *prefix);
|
||||
#endif
|
||||
SR_PRIV int std_session_send_df_header(const struct sr_dev_inst *sdi,
|
||||
|
|
|
@ -211,7 +211,7 @@ SR_PRIV int std_serial_dev_close(struct sr_dev_inst *sdi)
|
|||
* @retval SR_ERR Other errors.
|
||||
*/
|
||||
SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
|
||||
void *cb_data, dev_close_callback dev_close_fn,
|
||||
dev_close_callback dev_close_fn,
|
||||
struct sr_serial_dev_inst *serial, const char *prefix)
|
||||
{
|
||||
int ret;
|
||||
|
@ -238,7 +238,7 @@ SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
|
|||
return ret;
|
||||
}
|
||||
|
||||
std_session_send_df_end(cb_data, prefix);
|
||||
std_session_send_df_end(sdi, prefix);
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue