aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-07-30 18:51:51 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-02 21:25:27 -0400
commit3457912e0e4d42297aa37fe27a331516b684e91c (patch)
treedc8e318afc62eb52dc99e65a598e2b84dd6ea5e8
parent9092de6df330265f0cbfca496386d329ec8c2aa5 (diff)
Staging: quatech_usb2: remove unused qt2_box_flush function
In today linux-next I got a compilation warning: drivers/staging/quatech_usb2/quatech_usb2.c:1852: warning: ‘qt2_box_flush’ defined but not used Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/quatech_usb2/quatech_usb2.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/staging/quatech_usb2/quatech_usb2.c b/drivers/staging/quatech_usb2/quatech_usb2.c
index ecd73135b319..9838ea279c5c 100644
--- a/drivers/staging/quatech_usb2/quatech_usb2.c
+++ b/drivers/staging/quatech_usb2/quatech_usb2.c
@@ -258,8 +258,6 @@ static int qt2_box_get_register(struct usb_serial *serial,
258static int qt2_box_set_register(struct usb_serial *serial, 258static int qt2_box_set_register(struct usb_serial *serial,
259 unsigned short Uart_Number, unsigned short Register_Num, 259 unsigned short Uart_Number, unsigned short Register_Num,
260 unsigned short Value); 260 unsigned short Value);
261static int qt2_box_flush(struct usb_serial *serial, unsigned char uart_number,
262 unsigned short rcv_or_xmit);
263static int qt2_boxsetuart(struct usb_serial *serial, unsigned short Uart_Number, 261static int qt2_boxsetuart(struct usb_serial *serial, unsigned short Uart_Number,
264 unsigned short default_divisor, unsigned char default_LCR); 262 unsigned short default_divisor, unsigned char default_LCR);
265static int qt2_boxsethw_flowctl(struct usb_serial *serial, 263static int qt2_boxsethw_flowctl(struct usb_serial *serial,
@@ -645,9 +643,6 @@ static void qt2_close(struct usb_serial_port *port)
645 /* get the device private data */ 643 /* get the device private data */
646 port_extra = qt2_get_port_private(port); /* port private data */ 644 port_extra = qt2_get_port_private(port); /* port private data */
647 645
648 /* we don't need to force flush though the hardware, so we skip using
649 * qt2_box_flush() here */
650
651 /* we can now (and only now) stop reading data */ 646 /* we can now (and only now) stop reading data */
652 port_extra->close_pending = true; 647 port_extra->close_pending = true;
653 dbg("%s(): port_extra->close_pending = true", __func__); 648 dbg("%s(): port_extra->close_pending = true", __func__);
@@ -1841,24 +1836,6 @@ static int qt2_box_set_register(struct usb_serial *serial,
1841 return result; 1836 return result;
1842} 1837}
1843 1838
1844
1845/** @brief Request the Tx or Rx buffers on the USB side be flushed
1846 *
1847 * Tx flush: When all the currently buffered data has been sent, send an escape
1848 * sequence back up the data stream to us
1849 * Rx flush: add a flag in the data stream now so we know when it's made it's
1850 * way up to us.
1851 */
1852static int qt2_box_flush(struct usb_serial *serial, unsigned char uart_number,
1853 unsigned short rcv_or_xmit)
1854{
1855 int result;
1856 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
1857 QT2_FLUSH_DEVICE, 0x40, rcv_or_xmit, uart_number, NULL, 0,
1858 300);
1859 return result;
1860}
1861
1862/** qt2_boxsetuart - Issue a SET_UART vendor-spcific request on the default 1839/** qt2_boxsetuart - Issue a SET_UART vendor-spcific request on the default
1863 * control pipe. If successful sets baud rate divisor and LCR value. 1840 * control pipe. If successful sets baud rate divisor and LCR value.
1864 */ 1841 */
@@ -1873,6 +1850,7 @@ static int qt2_boxsetuart(struct usb_serial *serial, unsigned short Uart_Number,
1873 QT2_GET_SET_UART, 0x40, default_divisor, UartNumandLCR, 1850 QT2_GET_SET_UART, 0x40, default_divisor, UartNumandLCR,
1874 NULL, 0, 300); 1851 NULL, 0, 300);
1875} 1852}
1853
1876/** qt2_boxsethw_flowctl - Turn hardware (RTS/CTS) flow control on and off for 1854/** qt2_boxsethw_flowctl - Turn hardware (RTS/CTS) flow control on and off for
1877 * a hardware UART. 1855 * a hardware UART.
1878 */ 1856 */