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 X-Patchwork-Id: 97378 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp787173obc; Thu, 13 Apr 2017 08:04:28 -0700 (PDT) X-Received: by 10.84.160.226 with SMTP id v31mr4889151plg.122.1492095868469; Thu, 13 Apr 2017 08:04:28 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si24176207pge.361.2017.04.13.08.04.28; Thu, 13 Apr 2017 08:04:28 -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 S1754710AbdDMPE1 (ORCPT + 6 others); Thu, 13 Apr 2017 11:04:27 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33660 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754503AbdDMPEF (ORCPT ); Thu, 13 Apr 2017 11:04:05 -0400 Received: by mail-oi0-f67.google.com with SMTP id t63so12468116oih.0; 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=lPGu9VoS6l/uBOO/q/npWuXup940V9YMW1zXHK/PMfybJJsnNfpN3clI2+kR+3vJ23 OjB2FGMc8EN15vYTT3Veq/0Ijq1zNaH758hMED3TJeZhRRlK8L6GYIQbD/cicr3wAPGG PMA4KeDXXGBrd7niBKpbKR0Seb303DX+bFs0NSP/M1cgYTgDG7yF3L+xBIrTNkkIKN7h Df7XEkEJTqRV3e2hZ07yDnA2e0TaFlcPy9+xiD6ff+5K5w5PuT8IscpYXt2HEng6INJm PVnqSpyhpYvAPOeJTDT+ncgnUkm4e6E2n2tqn1dSHXP9bgHkib3qfLfDUBkWcpRySQdD SSGg== X-Gm-Message-State: AN3rC/7bGatlazfURf9f8f1fvMeEbZrsxzhSzi6+E9ZdnPSet0cTQeAm F2n/f+sIZTkznA== 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 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 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> 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 --- v3: - rebase on bluetooth-next drivers/bluetooth/hci_ldisc.c | 19 ------------------- drivers/bluetooth/hci_uart.h | 1 - 2 files changed, 20 deletions(-) -- 2.11.0 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,