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: 9665413 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 8C51A60353 for ; Wed, 5 Apr 2017 18:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 814BA27F94 for ; Wed, 5 Apr 2017 18:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 762E1285A3; Wed, 5 Apr 2017 18:31:13 +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 0CB9327F94 for ; Wed, 5 Apr 2017 18:31:13 +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=WyR5sFv8hzqrZPVKEr15zvFf2kwPRz8txWo0xnR8r/k=; b=uvx37wwrlmNtoIMznCZv95lY4A 44DNh2OOKGDUYjnHJim1vreYzZPoPavmV9IbY/ZAA1P0PTFCk6+Ynq/fajEjUwcxAD2MdS7GkuOyp lFxSwgHnsUxjrlSbmCBfRYaRtnBzWk3bAsbpjz7H6yD7hgGpI4+EYT6kyPUZ1Q5IL7PNbE8c7pQLR +ATDYDdAqbv9Wb21kla3reNZF6oBYvIB3eG0NmYpM1YOiBIA0tpy7Tx3n6hjvGD0ZIFujuHsAxBCP THGSUQN5J17286PFvJKkU25a3O8aaGzbbkMBtuR+cd4WB9euf5iM5BunDz6x/7SLgEpR4zl1nv39+ Z1VWyLSQ==; 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 1cvpi4-0003Wk-Kp; Wed, 05 Apr 2017 18:31:12 +0000 Received: from mail-oi0-f65.google.com ([209.85.218.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvphP-0002dF-3a for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2017 18:30:33 +0000 Received: by mail-oi0-f65.google.com with SMTP id f193so3418928oib.0 for ; 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=uJbvjjjVlbbVMiZe7UIqN1Q09H5IPtM2WRXfVQ2/L3lYZqToooJl0j6CbNMi38Vw3E iaR+kcllz3pmYc3vb3pxRxWfblVCPk6De0gOjhp5YLFU6mb5SI++Q+OAQy0L7W5mnLQC k9vZHCR8gDQavRQN74tkCzlEiwtdHIMlGPY1x7XkYTqnKr8IlzKj6BuUC+qyrq0NxJ1x veifE7chZ5qPSFlnnV0sBEOzTUWe2J1Un9uv0V3WGDlXfsiI7lO1a27P2Q7SJ69TU7eB 0GB0lpHHEgKSGfVCNh6wKD+2fStsQjM/Blnus1u0bP8+RryfDvyP9Tem911hvErX3jXQ RDkg== X-Gm-Message-State: AFeK/H3hNDOf2Nyx4ZTr0sfNPXuL/QT4t7xm96T42HF5NVhl7V6npIiWukioGTj8hhUDbA== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170405_113031_322083_76345C8B X-CRM114-Status: UNSURE ( 9.18 ) 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 --- 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,