From patchwork Wed Apr 5 18:30:03 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: 96899 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp390177qgd; Wed, 5 Apr 2017 11:30:20 -0700 (PDT) X-Received: by 10.36.19.206 with SMTP id 197mr23060047itz.23.1491417020460; Wed, 05 Apr 2017 11:30:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63si7935035itb.110.2017.04.05.11.30.20; Wed, 05 Apr 2017 11:30:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933816AbdDESaS (ORCPT + 6 others); Wed, 5 Apr 2017 14:30:18 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35291 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932546AbdDESaK (ORCPT ); Wed, 5 Apr 2017 14:30:10 -0400 Received: by mail-oi0-f68.google.com with SMTP id d2so3415275oig.2; Wed, 05 Apr 2017 11:30:10 -0700 (PDT) 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:in-reply-to :references; bh=lyRw9s410Lkg0W51l6fQB/9lPKAaneulWHI/pbEI63w=; b=nmhfCvjWe6ky4kmySO0Y4Rtz1XtJXcJ0R4iPs7lJQYuKMtKoDsqh7odlh9ZYr+2geo E4lY+VR4Lzw+Tda1Uc8O07zdOMTU3KlG95sNh5AlRLcQ+m765KSCk49jgsoaRZoVroAN pkd2VV8IcDlCNAYGj8FNqQKCZrW9+im9HtEJjkYAkgaLySNbRt0hcNizR1wk+0DwAFBe DB+LdgCqIBsB/GCkFdk6LwG1TqGonANqVBwD5RAPmhZyZff2gSf2b9cm7zh2b56p1Np0 baITFbG2a2GjmTPosQJke859sUoao+WBJJ01N7moUvdTZ+Ww6TnVlChOSAT+gJLYtv3y EJfw== X-Gm-Message-State: AFeK/H0odbQMD0PcX/DWjjHNEIHOhya8sWKOSCgyDacPc9vevpkWfi3H1RvQ7lIhzCP/ZA== X-Received: by 10.157.9.179 with SMTP id q48mr4860475otd.128.1491417009837; Wed, 05 Apr 2017 11:30:09 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id o76sm5334458ota.17.2017.04.05.11.30.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Apr 2017 11:30:09 -0700 (PDT) From: Rob Herring To: Marcel Holtmann , linux-bluetooth@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Gustavo Padovan , Johan Hedberg , Mark Rutland , Wei Xu , Eyal Reizer , Satish Patel , netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] bluetooth: hci_uart: remove unused hci_uart_init_tty Date: Wed, 5 Apr 2017 13:30:03 -0500 Message-Id: <20170405183005.20570-3-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170405183005.20570-1-robh@kernel.org> References: <20170405183005.20570-1-robh@kernel.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 17bcbc13623f..cec4438ede01 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -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; diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h index 1b41c661bbb8..2b05e557fad0 100644 --- a/drivers/bluetooth/hci_uart.h +++ b/drivers/bluetooth/hci_uart.h @@ -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,