libsigrok/src/hardware/atten-pps3xxx
Wolfram Sang cb828f1b3e serial: flush() after open() in the serial core.
Quite some drivers flush the serial port after opening it. And quite
some don't although they should. Factor this out, so serial_open() will
always flush the port. The removal in the drivers was done with this
small coccinelle script:

@@
struct sr_serial_dev_inst *serial;
@@

        serial_open(serial, ...)
        ... when != serial
-       serial_flush(serial);

and then the results and the unmatched findings of serial_flush() were
audited.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-07-26 16:06:42 +02:00
..
api.c serial: flush() after open() in the serial core. 2020-07-26 16:06:42 +02:00
protocol.c Document if or why sometimes digits/spec_digits is 0. 2016-08-29 00:25:19 +02:00
protocol.h drivers: Drop unneeded or duplicate comments. 2017-07-21 15:23:56 +02:00