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> |
||
---|---|---|
.. | ||
scpi.c | ||
scpi_libgpib.c | ||
scpi_serial.c | ||
scpi_tcp.c | ||
scpi_usbtmc_libusb.c | ||
scpi_visa.c | ||
scpi_vxi.c | ||
vxi.h | ||
vxi.x | ||
vxi_clnt.c | ||
vxi_xdr.c |