]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
bluetooth: hci_uart: remove unused hci_uart_init_tty
authorRob Herring <robh@kernel.org>
Thu, 13 Apr 2017 15:03:51 +0000 (10:03 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 13 Apr 2017 17:22:53 +0000 (19:22 +0200)
There are no users of hci_uart_init_tty, so remove it.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_uart.h

index 17bcbc13623fe63476dfeaa1e1ab3559f648b84e..cec4438ede010c9b64d88784c9a60be0227cee64 100644 (file)
@@ -319,25 +319,6 @@ void hci_uart_set_speeds(struct hci_uart *hu, unsigned int init_speed,
        hu->oper_speed = oper_speed;
 }
 
-void hci_uart_init_tty(struct hci_uart *hu)
-{
-       struct tty_struct *tty = hu->tty;
-       struct ktermios ktermios;
-
-       /* Bring the UART into a known 8 bits no parity hw fc state */
-       ktermios = tty->termios;
-       ktermios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP |
-                             INLCR | IGNCR | ICRNL | IXON);
-       ktermios.c_oflag &= ~OPOST;
-       ktermios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
-       ktermios.c_cflag &= ~(CSIZE | PARENB);
-       ktermios.c_cflag |= CS8;
-       ktermios.c_cflag |= CRTSCTS;
-
-       /* tty_set_termios() return not checked as it is always 0 */
-       tty_set_termios(tty, &ktermios);
-}
-
 void hci_uart_set_baudrate(struct hci_uart *hu, unsigned int speed)
 {
        struct tty_struct *tty = hu->tty;
index 1b41c661bbb863267a728963110a6c44680b38e4..2b05e557fad01ef9ea0177f78ba5ef15850f4016 100644 (file)
@@ -114,7 +114,6 @@ int hci_uart_register_device(struct hci_uart *hu, const struct hci_uart_proto *p
 
 int hci_uart_tx_wakeup(struct hci_uart *hu);
 int hci_uart_init_ready(struct hci_uart *hu);
-void hci_uart_init_tty(struct hci_uart *hu);
 void hci_uart_set_baudrate(struct hci_uart *hu, unsigned int speed);
 void hci_uart_set_flow_control(struct hci_uart *hu, bool enable);
 void hci_uart_set_speeds(struct hci_uart *hu, unsigned int init_speed,