Skip to content

Commit 31927e5

Browse files
robherringholtmann
authored andcommitted
bluetooth: hci_uart: remove unused hci_uart_init_tty
There are no users of hci_uart_init_tty, so remove it. Signed-off-by: Rob Herring <[email protected]> Cc: Marcel Holtmann <[email protected]> Cc: Gustavo Padovan <[email protected]> Cc: Johan Hedberg <[email protected]> Cc: [email protected] Signed-off-by: Marcel Holtmann <[email protected]>
1 parent f0c660e commit 31927e5

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

drivers/bluetooth/hci_ldisc.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -319,25 +319,6 @@ void hci_uart_set_speeds(struct hci_uart *hu, unsigned int init_speed,
319319
hu->oper_speed = oper_speed;
320320
}
321321

322-
void hci_uart_init_tty(struct hci_uart *hu)
323-
{
324-
struct tty_struct *tty = hu->tty;
325-
struct ktermios ktermios;
326-
327-
/* Bring the UART into a known 8 bits no parity hw fc state */
328-
ktermios = tty->termios;
329-
ktermios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP |
330-
INLCR | IGNCR | ICRNL | IXON);
331-
ktermios.c_oflag &= ~OPOST;
332-
ktermios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
333-
ktermios.c_cflag &= ~(CSIZE | PARENB);
334-
ktermios.c_cflag |= CS8;
335-
ktermios.c_cflag |= CRTSCTS;
336-
337-
/* tty_set_termios() return not checked as it is always 0 */
338-
tty_set_termios(tty, &ktermios);
339-
}
340-
341322
void hci_uart_set_baudrate(struct hci_uart *hu, unsigned int speed)
342323
{
343324
struct tty_struct *tty = hu->tty;

drivers/bluetooth/hci_uart.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ int hci_uart_register_device(struct hci_uart *hu, const struct hci_uart_proto *p
114114

115115
int hci_uart_tx_wakeup(struct hci_uart *hu);
116116
int hci_uart_init_ready(struct hci_uart *hu);
117-
void hci_uart_init_tty(struct hci_uart *hu);
118117
void hci_uart_set_baudrate(struct hci_uart *hu, unsigned int speed);
119118
void hci_uart_set_flow_control(struct hci_uart *hu, bool enable);
120119
void hci_uart_set_speeds(struct hci_uart *hu, unsigned int init_speed,

0 commit comments

Comments
 (0)