]> sigrok.org Git - libsigrok.git/commitdiff
std_serial_dev_acquisition_stop(): Drop unneeded parameter.
authorUwe Hermann <redacted>
Wed, 13 Apr 2016 20:11:22 +0000 (22:11 +0200)
committerUwe Hermann <redacted>
Fri, 29 Apr 2016 17:20:53 +0000 (19:20 +0200)
22 files changed:
src/hardware/agilent-dmm/api.c
src/hardware/appa-55ii/api.c
src/hardware/arachnid-labs-re-load-pro/api.c
src/hardware/brymen-dmm/api.c
src/hardware/cem-dt-885x/api.c
src/hardware/center-3xx/api.c
src/hardware/colead-slm/api.c
src/hardware/fluke-dmm/api.c
src/hardware/gmc-mh-1x-2x/api.c
src/hardware/kern-scale/api.c
src/hardware/korad-kaxxxxp/api.c
src/hardware/link-mso19/protocol.c
src/hardware/manson-hcs-3xxx/api.c
src/hardware/mic-985xx/api.c
src/hardware/motech-lps-30x/api.c
src/hardware/norma-dmm/api.c
src/hardware/serial-dmm/api.c
src/hardware/teleinfo/api.c
src/hardware/tondaj-sl-814/api.c
src/lcr/es51919.c
src/libsigrok-internal.h
src/std.c

index 6a34985f8096a153466e6fc074f6c4a1065dbaa6..9ff02d9a199514735781b98c0e5bc307cacbef89 100644 (file)
@@ -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);
 }
 
index d81d076346b3fa35e265a37fe1be94235c3cf7f0..87f5ea49ca610381e9db9ce6366efe5d8191e567 100644 (file)
@@ -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);
 }
 
index 4e186051a71d55b982f3b96827509194c60056eb..3686b34854148fdd0243ad1fde405823c5c7f94f 100644 (file)
@@ -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);
 }
 
index ceb7d846b5533cb36d4de6e60814f226e797f971..1dcf205ca3000da0c14f2365283d490b1f5eed4d 100644 (file)
@@ -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);
 }
 
index 146c80464fc321ed431fb800553df9719b680bb8..9e863ff7191a323a247551114d80976ff149a925 100644 (file)
@@ -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);
 }
 
index bdcb0169d21c3c70f786d728c92105008d48626b..d4451cbe72b539c8755e078f81271b2d5384133f 100644 (file)
@@ -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);
 }
 
index c7019a31f1a36c00393e47f66195919766cca9a6..7e764bbaf47251903feb879f08d3f783828e6787 100644 (file)
@@ -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);
 }
 
index bc2e0e56de6634aa37fc185a6eab8e8c9717daa9..765a26a9840c31747321b822b4dd400d392ef112 100644 (file)
@@ -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);
 }
 
index 2b7bfca6c6ebead378b8babaeca3a4f29a434783..15bf7f9f4845021adcea0bb6d4578ff172fb5fe2 100644 (file)
@@ -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);
 }
 
index 03a68d8a7dee98c7d8ab785565b7257ce2dc1a60..6a0351580383e419fa7643738c67a073f5042e7b 100644 (file)
@@ -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);
 }
 
index 42dd581a91fc9db56ceed0073fc5378404046a59..5aa5b217cd2f09e888202e23a65173cb8503b7cb 100644 (file)
@@ -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);
 }
 
index dbc8f79cf91cb48398e36dca16e9787b1cd37a18..8d4f9056d6a51a6ea29a738abac2ba19bcbbd2b8 100644 (file)
@@ -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;
index 125febbeba0e67c0f49246dccad322fbddcb2d2b..cc9ab74a0283d906f0fcb128f057e583b89a3791 100644 (file)
@@ -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);
 }
 
index aafb08a91a363f10f63299f6c07cbcad180ac51f..b8e694653ee0f66a017575a8d0feb244067a5bf5 100644 (file)
@@ -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);
 }
 
index bbbdb660e69b2c9982f93e9903ccb64e1def0b7c..cee97b575f909fee37ae44832a5fe9a267a95629 100644 (file)
@@ -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);
 }
 
index 04775a6418f51bb2b5b67ac278c4a885896ff5fb..8a93f790dcc740d17963e7f854784d9f0a083dd6 100644 (file)
@@ -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);
 }
 
index eaf913f271ab1fff7ed54e6acc24bd95cad69f51..f505876402ff22549ab768c3a457083bd22b8044 100644 (file)
@@ -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);
 }
 
index 1d8f91df22eb6222385e6850d816f5d000d89e90..7af74b031dca42efaf4d349b3dcfb2b741c345bc 100644 (file)
@@ -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);
 }
 
index e417d96f3999b6fe2d8e8a0343c64d0ad1de303e..d6d6f1e7efba6e7be30fbd30700b100898f5577d 100644 (file)
@@ -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);
 }
 
index ceffa411764f23b7fe8344a3045b397b2895dc11..f020de8398d850839d66a00af895c092a3813943 100644 (file)
@@ -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);
 }
index 7c8c0eb2e13efc0fb9140b99fd46f2b517060501..af08f2ab6172a0a38500898577498965ef82c0db 100644 (file)
@@ -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,
index adbd2e52b6fa14d0c34554d8f9f4b62fe43090c9..d741c80928a62f0a549d5efbe9305f7a69a33454 100644 (file)
--- a/src/std.c
+++ b/src/std.c
@@ -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;
 }