From patchwork Wed Jan 18 17:29:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 91817 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1121669qgi; Wed, 18 Jan 2017 09:29:15 -0800 (PST) X-Received: by 10.84.218.71 with SMTP id f7mr6667910plm.59.1484760555907; Wed, 18 Jan 2017 09:29:15 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si820078pgg.177.2017.01.18.09.29.15 for ; Wed, 18 Jan 2017 09:29:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752341AbdARR3G (ORCPT ); Wed, 18 Jan 2017 12:29:06 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:32896 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbdARR3D (ORCPT ); Wed, 18 Jan 2017 12:29:03 -0500 Received: by mail-oi0-f66.google.com with SMTP id j15so1387554oih.0 for ; Wed, 18 Jan 2017 09:29:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cRXQAAzsc7Wt+LQukTDz2EL96COSSsqFs1N50MqwD7w=; b=fpNFLt0quWDuPamP5bHen1qDMEVguxdtsNa7ZM+nMsAW2BYAP3Yf6Xjs9HS2/L9A7g JL8j56EPuArbe+uhfRdzdZ2bNLQnKyhZsRw15nz+tM+8sm/YRLCBVJz1n1gSw00lZIRc waOgQ9PIBoX7L55kB6DKzGSpCFE7yb+wGTbfvdN7pY+/PZtv2AvG/knArQfPhxTZG3Ne Lzx5VBAppPFX2qoZXxIP7iNS8Ff6gRUX70VaXvSWALOZ8PVf6RNFv1E4S7lL7j8CLfsm xhQCeZGbkUzXhq/XT8AIqghc7NVidtWH2ZKLhdkaiZaUPU+B1TrQ9wQPZNhSgG1wJ8+1 mvAQ== X-Gm-Message-State: AIkVDXIt6hKghRrD5jDONlEjFDzBUz6533SWaO+IamKJrjyUHIsYUVHlqTm/QKV3vkeJUA== X-Received: by 10.202.44.216 with SMTP id s207mr2303548ois.23.1484760542953; Wed, 18 Jan 2017 09:29:02 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id k3sm463260otd.17.2017.01.18.09.29.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 09:29:02 -0800 (PST) From: Rob Herring To: Marcel Holtmann Cc: Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org Subject: [PATCH] bluetooth: hci_uart: remove unused hci_uart_init_tty Date: Wed, 18 Jan 2017 11:29:01 -0600 Message-Id: <20170118172901.20546-1-robh@kernel.org> X-Mailer: git-send-email 2.10.1 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org There are no users of hci_uart_init_tty, so remove it. Signed-off-by: Rob Herring Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Cc: linux-bluetooth@vger.kernel.org --- drivers/bluetooth/hci_ldisc.c | 19 ------------------- drivers/bluetooth/hci_uart.h | 1 - 2 files changed, 20 deletions(-) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 9497c469efd2..de20a438a78a 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -318,25 +318,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; diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h index 070139513e65..cb7f4b4aeca0 100644 --- a/drivers/bluetooth/hci_uart.h +++ b/drivers/bluetooth/hci_uart.h @@ -107,7 +107,6 @@ int hci_uart_register_proto(const struct hci_uart_proto *p); int hci_uart_unregister_proto(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,