From patchwork Wed Oct 11 17:38:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lino Sanfilippo X-Patchwork-Id: 732397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0832CDB473 for ; Wed, 11 Oct 2023 17:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232766AbjJKRjQ (ORCPT ); Wed, 11 Oct 2023 13:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbjJKRjO (ORCPT ); Wed, 11 Oct 2023 13:39:14 -0400 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2088.outbound.protection.outlook.com [40.107.249.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E7D98; Wed, 11 Oct 2023 10:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YnZ7gbPricR2ACpOXheK35H30OSlirJ0sRNbq2BNUfprgmFlHc5svTR/vhVwz/oMUzNFf2SBvMYTVv0/hLDqXQaE4LU6IB3cgv2NenhNH0TUV7Md/vdcFYonDchSbNXvJfemsErOLod7M4N/EIRpzkQTMH+yRF/o1yQJ9v4QVHZ79MhVL/JD46C4N29JIWJQAhA9E6d5TJdWfV8UA0qi2elJD6d8b6vWpCP3QPcXDSYqWK4oIuGPuY4nOGW0oS5LoyDQVB284vkLuaCK16zb1lX/l8gYbz2AQGbz6eGuxTnGyZ19TFXUwJAWEL5YFklTSwmEui+ZhRbzNzJoh9Y3eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4GdkgcY/GaYzPupCbixjzBwTpe3yNotCFgwLRCoSCFU=; b=Hc0wO1p8od/ZkpnVeH7OPDF00CHci20/YQCmtTkncw/PeMnydGLK+14VbL2Wphol2WGL6NOvw/gYLqybZk7kaU2Go55Mm70lJymAuWTr7COWD1dM59QZ0wRS3DUx/vQ3tTeCxIPrNJsCeMI02MIOfwwXhWo020h+OfwsmDPClTf7MylxcaXlogb/Qm0EjGrzDTvQUiaO2uCpkpF8NLcYOD7lceaG2f270psOyKaXzRVzKfI/7ZJBntcPzRxveQ5simEK+O60neNaYCeTr6tFyRA67J0hVsoLUbk8k+pCKYYby5kP1/ep82lMA6PEmRQf++eJnyv+WrZ/OsHfgJDUHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbus.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4GdkgcY/GaYzPupCbixjzBwTpe3yNotCFgwLRCoSCFU=; b=MJxAlVUKboAjc3pnWKf5Qx6lgDT0aXgANdEfYhea3qRmKVX1/GNlL6RX41RZohYRzbvHNf9khEqd94g9qhsHs4QwA3uAV0hAvDUFZOA4ERQLEWTXm6s9oNqRbp0WS0zqR0MACmPPvIMOrJMYJ6h5EALzxJ/p6863t7nPjp/eKyM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kunbus.com; Received: from VI1P193MB0413.EURP193.PROD.OUTLOOK.COM (2603:10a6:803:4e::14) by AM8P193MB1187.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:362::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.41; Wed, 11 Oct 2023 17:39:05 +0000 Received: from VI1P193MB0413.EURP193.PROD.OUTLOOK.COM ([fe80::550d:2425:c0ed:3e59]) by VI1P193MB0413.EURP193.PROD.OUTLOOK.COM ([fe80::550d:2425:c0ed:3e59%3]) with mapi id 15.20.6863.032; Wed, 11 Oct 2023 17:39:05 +0000 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, cniedermaier@dh-electronics.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, LinoSanfilippo@gmx.de, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: [PATCH v2 2/7] serial: amba-pl011: get rid of useless wrapper pl011_get_rs485_mode() Date: Wed, 11 Oct 2023 19:38:24 +0200 Message-Id: <20231011173829.10508-3-l.sanfilippo@kunbus.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231011173829.10508-1-l.sanfilippo@kunbus.com> References: <20231011173829.10508-1-l.sanfilippo@kunbus.com> X-ClientProxiedBy: FR2P281CA0093.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9b::18) To VI1P193MB0413.EURP193.PROD.OUTLOOK.COM (2603:10a6:803:4e::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P193MB0413:EE_|AM8P193MB1187:EE_ X-MS-Office365-Filtering-Correlation-Id: cea16201-84a7-4859-cad4-08dbca80f72e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TRs833aB0CzXkuyGa32oC1obW3+IQ/WEMrvnuVu6mheOfUuAve45hx2o5X08kbVf9QzDyh29KLK1MkCA911bjBO0GxfSuM/0ShiUgC06Dy7wJTD0NuEHqMJ1gDcBTFubtoduNMgAhaPVzkFiM7WmSIy2YFMZys5tJtvCNogtUaHbk7DTD8pCNDb1DOtHCZ9XotZL0128ZCmcG+0xCHIPyL24oaHOYzugkkpx5nD+pNN12H/RIjohBYFvCwy0CLEXOYf3dzBPqMr17diq8csXGlus2tEk/+HPNXootosn89MGbW1rcvSlEwG3Xl/1CgIBO9RF3hlqyVP77PwQXcOdOQHJer7GsgS6Ub1zD0QKMhamhvGk2UHUD38iGTYIGRJIqvD+EBcfLIjBPXPCtKpWaECbJxsVS8n0MUXnxnxep21BbMb0m9FGNIajDVXjZskVrk/PSlHYd1TPaYnRiDTLTJnrUw+AnTl44J92ygzEz2vulsBRXhbwgUmIS0kdKLSWn2BeeudQMqbxPPgo8a+KQRC+ACB1qrxcAlmKFafOuYRT2ZdeDfc0wHVgi3I+mBCd0NN0KCT9ukea+nZVAGkfYwRZABzNbWWl9XsZt2O4xiI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1P193MB0413.EURP193.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(136003)(39840400004)(376002)(366004)(346002)(396003)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(6666004)(2616005)(83380400001)(6486002)(478600001)(1076003)(107886003)(52116002)(38100700002)(6506007)(6512007)(66476007)(66946007)(66556008)(4326008)(8676002)(8936002)(41300700001)(316002)(86362001)(7416002)(2906002)(36756003)(5660300002)(26583001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zcsL/23QVWB3aLyfKslCBBRVJue6luKUKao4dSgfWqnRx1T4Y0KfquhU9XI5SnW1Vsvi+mxhIcugYOwGR3uzZ++JWX22S2r94PXe6zSxzXFkr/HDTFecIsa0m5u+0mFW7opetsk9w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SGIHsevaDTK1f0GrRVj2VxvN5qWzVeUF2JWLkUss+s7khwJi4LlmZW56AfAFlm6+GbsqUJxX7e0ihhdGMNkFKGk8jqIV81L5+ibZi0hqfeQGqpRj4jZP8IX0uoSI9GkXnFxOsPx/txhPoZ56QWkOSP6Z/6gV6caf1PM8Ggr4I20awruW589HQvUVoYbEi8qEp8P2F8DcT9Ibet1l7PeWG1J5pGEEAkBMIxfyisSHplwlfzOZbQGhbMGLFlAW9ZJ9SymojFG8hi5tZHhrZOZo2DoJfb9ekbicrd7EU29mR7Q03aCLeJCPlrR97Ef18xmZrOxydBpL72WXRpgfavxphERduVQFqSlEvqUQQwqrMkT8mgDa7nypEKDp1dF/dE8RgmpDpOGpoPIQv01Cil3sucaJ71mAavoBwyeY1yu+NYyNFFHEGDccbxpREEvanmDq1cDU2zrh4J X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: cea16201-84a7-4859-cad4-08dbca80f72e X-MS-Exchange-CrossTenant-AuthSource: VI1P193MB0413.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2023 17:39:05.7071 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QqKcf8aIXkPvFHHLJr5O8xrqz3WCbhdSGh6CROWO06UVsrv5qxNHuWewcD9k4AqsGusLnzSKB9a75bBiLL44fQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P193MB1187 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Due to earlier code changes function pl011_get_rs485_mode() is now merely a wrapper for uart_get_rs485_mode() which does not add any further functionality. So remove it and instead call uart_get_rs485_mode() directly. Reviewed-by: Lukas Wunner Signed-off-by: Lino Sanfilippo --- drivers/tty/serial/amba-pl011.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 3dc9b0fcab1c..70b44f3e9eb7 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2716,18 +2716,6 @@ static int pl011_find_free_port(void) return -EBUSY; } -static int pl011_get_rs485_mode(struct uart_amba_port *uap) -{ - struct uart_port *port = &uap->port; - int ret; - - ret = uart_get_rs485_mode(port); - if (ret) - return ret; - - return 0; -} - static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, struct resource *mmiobase, int index) { @@ -2748,7 +2736,7 @@ static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, uap->port.flags = UPF_BOOT_AUTOCONF; uap->port.line = index; - ret = pl011_get_rs485_mode(uap); + ret = uart_get_rs485_mode(&uap->port); if (ret) return ret;