From patchwork Thu Apr 13 15:03:51 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: 9679581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 70CD260326 for ; Thu, 13 Apr 2017 15:05:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 634E228462 for ; Thu, 13 Apr 2017 15:05:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5668F28613; Thu, 13 Apr 2017 15:05:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E6E3428462 for ; Thu, 13 Apr 2017 15:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=f91RVCDvvS67WX5ONFiFdZLxEwDVtY34oVf7V7rbJGw=; b=tkZo9McKpi0lZ5q02dZQ8zUlj1 ywucRv7BL5YmwfAUGA/LOoMy7Ybnef0+pA4brQ7NkPxDEG1AEbegcMIFvZl+ltMKW6zqdDNABhkIH VnJdwgAyU5JFlopuVlclk2S9lhXSjCSps96GwhLfs/SoQMbDcqVHYSMAwu/GXjW6OjjbM2Xqd8hDh M3PgF/TN/fbtMElZOUf0UtZUcJCtXEuVQpb31OEWQoFawBUetLPeyNZ1rSxovM6OaUqk6xrYK34eo 1QBkVxo5PcFj3cjlZ5+06yYEW1a7oNCJxcqPVB9Uaa9OQIdCapwnJIC6KT+5vR/PJjY07LdalS3P1 GMnXL2Fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cygJ4-0000nu-6a; Thu, 13 Apr 2017 15:05:10 +0000 Received: from mail-oi0-f67.google.com ([209.85.218.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cygIL-0007mr-G8 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2017 15:04:31 +0000 Received: by mail-oi0-f67.google.com with SMTP id g204so12468090oib.2 for ; Thu, 13 Apr 2017 08:04:05 -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=l2Np4pIZRjqwdXQQa1uyHnhSzlddKMNgH9pBJFM3Qmc=; b=Fg2T1UcpZk5Gtaqp2EMyxQ/OmJrH9hAbAQ+XUtNFwBXaKgxpUs42d9w5I5nOqVCoJg /0N7AbI51PGF/ZZUIgFu1M7A8ME/JKIG9NnBUFZm3ly0yGpnZDuyRAw+f3aTXctCUfRN fZv0YbdQ5611GABnhHGsTkzV96C0rM9qDI9H3Xq074zK2Yz5rx/mYm51TL3lAb+JDi+m 6py9AtdS4YdKaixeoEIg4xCLN2cPnIiKLY2WkNmVpsM39hlxjX0KSLMHlzYrb3/AjrfC DdMzknAwyK09XJ5fU+REv6IeA9GltOHFqxm8eHJ+y9RhxQWbuSRCxImOK5yL1GREpWYd MCxQ== X-Gm-Message-State: AN3rC/4nCGzthg0pcOTx9PgoGoLrLXh6urAsAnMRW9+62yAhLJq1kU3B GWOjVSVTBi+DemFzEJo= X-Received: by 10.157.53.34 with SMTP id o31mr2159082otc.76.1492095844464; Thu, 13 Apr 2017 08:04:04 -0700 (PDT) Received: from localhost.localdomain (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id h189sm10626808oic.37.2017.04.13.08.04.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Apr 2017 08:04:03 -0700 (PDT) From: Rob Herring To: Marcel Holtmann , linux-bluetooth@vger.kernel.org Subject: [PATCH v3 2/4] bluetooth: hci_uart: remove unused hci_uart_init_tty Date: Thu, 13 Apr 2017 10:03:51 -0500 Message-Id: <20170413150353.7389-3-robh@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170413150353.7389-1-robh@kernel.org> References: <20170413150353.7389-1-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170413_080425_593608_9EA1378D X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Johan Hedberg , Gustavo Padovan , Satish Patel , Wei Xu , Eyal Reizer , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- v3: - rebase on bluetooth-next drivers/bluetooth/hci_ldisc.c | 19 ------------------- drivers/bluetooth/hci_uart.h | 1 - 2 files changed, 20 deletions(-) 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,