From patchwork Thu Oct 26 10:41:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 158493 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp573117vqb; Thu, 26 Oct 2023 03:42:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7wfajvH1GZNv9HVLiXvdCppLDUIYeZuyJawLhsQZPve7JOaX3MMJuRvPAkgxtt1dASDwE X-Received: by 2002:a25:260f:0:b0:da0:3e97:1c58 with SMTP id m15-20020a25260f000000b00da03e971c58mr7501972ybm.51.1698316927531; Thu, 26 Oct 2023 03:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698316927; cv=none; d=google.com; s=arc-20160816; b=rn71dvQqXJqOi6dCWEt+et1kUVdgNB7wbiBF9jfvLhKCdDMe6clKet4QwgnDKZMTN6 jtCIcmN6BKqVnafr8yyzDOp0iDG31VXysR0YvKCLLkVGv1ivQkQoxt1p9mriMQ6U9ek3 b1k0BrJqonNOHJ2vaWfi92Ht+rhYGZkynSo85rrJN+oTiKMw323yhb5By8hWwYufXhLx FoEwmfzvbLpyQdYVlxkhho4aDsiMLaSgX/Y+rtigB8i0mvI50yf1bDAFeeaBwSVMaI73 Pg9UGJRPaUvImZe2FnnBOl/Lb6TlcV8q8I8uci67YPcJsFbWiPW8QSjBX/UcNhTuepYu H1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=tDw5w/BCvQxAYVMZ3iFH2d1Ti5JAK2d/k6tk4TbsZXw=; fh=0GQDSxykeLgRwmrHkUZ9jyOse/Zvi+zOzBe9zh1Wo7Y=; b=K9n/Pi9G1lLU6TNEGkPZAGRsnFqUL/1ipRzSuvG2+sPtT8sMBjSN5ojpAvEXcMGgTO 7UdSmGuBm7UD/ZxxrsQWrkX/V9JyhzmY4bJG8XewiuVIrSLGZG5SSqEDCW5gUaEQ8fv2 VaNVu05HAJjQkLr3kvrtgPMrkddMppKu7quZyudmK4U4n4N770KNV0v1hi26oUKHzyrk 6eRKjPrdkuCZ2Hn6gwhpqBMKWmw0VhQFPll5dTxBmhrR5FGVgsmc2BvXPCng7uileabz JisCSrK5TNkr9WHoo/8tszCvxmAViEQRp/MfzhRjIGm0x8Dgjg1Xgw9gvrn2HhHEVcnO 0U6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kQZjqCCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o136-20020a25418e000000b00d781ae9d7ccsi13239217yba.585.2023.10.26.03.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 03:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kQZjqCCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C05728216926; Thu, 26 Oct 2023 03:42:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344696AbjJZKmA (ORCPT + 26 others); Thu, 26 Oct 2023 06:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234959AbjJZKlz (ORCPT ); Thu, 26 Oct 2023 06:41:55 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D39781B1; Thu, 26 Oct 2023 03:41:50 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id A3E44240008; Thu, 26 Oct 2023 10:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698316909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tDw5w/BCvQxAYVMZ3iFH2d1Ti5JAK2d/k6tk4TbsZXw=; b=kQZjqCCmQSFYlDXBRl68K9ttqjmmfPXdyUPjej1MswBg0iOL4sp8f/CLcjgpO/cTQWY7e1 rSWod5+U2VCqdW3iiigY5yqHgHE58XGLtsLHaPMH23UqWAdPeR/DecIpCeMfTvuEAjmXtr 8iPgx29Ugf7blVHQ3xzSTAHiBK9OkRQr0zFEeKkSoQFtNgZ7G+l9XGy9s5FEDOYSP943wB +6RegEkxyETCZUPJ30DVNNs+3kcQ5J+STBb9NItpEROYmL79QLrx18mxhIjHYrigHeq27+ 8RgH4k50N17X11NvepP9gaMSrPqj1ZSjqQjw5ptdX/vSwI72m+PkZ+UUxvV0GA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Thu, 26 Oct 2023 12:41:18 +0200 Subject: [PATCH 1/6] tty: serial: amba: cleanup whitespace MIME-Version: 1.0 Message-Id: <20231026-mbly-uart-v1-1-9258eea297d3@bootlin.com> References: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> In-Reply-To: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> To: Russell King , Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Linus Walleij , Gregory CLEMENT , Alexandre Belloni , Thomas Petazzoni , Vladimir Kondratiev , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.3 X-GND-Sasl: theo.lebrun@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 03:42:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780814370936959073 X-GMAIL-MSGID: 1780814370936959073 Fix whitespace in include/linux/amba/serial.h to match current kernel coding standards. Fixes about: - CHECK: spaces preferred around that '|' (ctx:VxV) - ERROR: code indent should use tabs where possible - WARNING: Unnecessary space before function pointer arguments - WARNING: please, no spaces at the start of a line Signed-off-by: Théo Lebrun Reviewed-by: Linus Walleij --- include/linux/amba/serial.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/linux/amba/serial.h b/include/linux/amba/serial.h index a1307b58cc2c..27003ec52114 100644 --- a/include/linux/amba/serial.h +++ b/include/linux/amba/serial.h @@ -75,10 +75,10 @@ #define UART011_DR_PE (1 << 9) #define UART011_DR_FE (1 << 8) -#define UART01x_RSR_OE 0x08 -#define UART01x_RSR_BE 0x04 -#define UART01x_RSR_PE 0x02 -#define UART01x_RSR_FE 0x01 +#define UART01x_RSR_OE 0x08 +#define UART01x_RSR_BE 0x04 +#define UART01x_RSR_PE 0x02 +#define UART01x_RSR_FE 0x01 #define UART011_FR_RI 0x100 #define UART011_FR_TXFE 0x080 @@ -86,9 +86,9 @@ #define UART01x_FR_TXFF 0x020 #define UART01x_FR_RXFE 0x010 #define UART01x_FR_BUSY 0x008 -#define UART01x_FR_DCD 0x004 -#define UART01x_FR_DSR 0x002 -#define UART01x_FR_CTS 0x001 +#define UART01x_FR_DCD 0x004 +#define UART01x_FR_DSR 0x002 +#define UART01x_FR_CTS 0x001 #define UART01x_FR_TMSK (UART01x_FR_TXFF + UART01x_FR_BUSY) /* @@ -110,14 +110,14 @@ #define UART011_CR_TXE 0x0100 /* transmit enable */ #define UART011_CR_LBE 0x0080 /* loopback enable */ #define UART010_CR_RTIE 0x0040 -#define UART010_CR_TIE 0x0020 -#define UART010_CR_RIE 0x0010 +#define UART010_CR_TIE 0x0020 +#define UART010_CR_RIE 0x0010 #define UART010_CR_MSIE 0x0008 #define ST_UART011_CR_OVSFACT 0x0008 /* Oversampling factor */ #define UART01x_CR_IIRLP 0x0004 /* SIR low power mode */ #define UART01x_CR_SIREN 0x0002 /* SIR enable */ #define UART01x_CR_UARTEN 0x0001 /* UART enable */ - + #define UART011_LCRH_SPS 0x80 #define UART01x_LCRH_WLEN_8 0x60 #define UART01x_LCRH_WLEN_7 0x40 @@ -203,8 +203,8 @@ #define UART011_TXDMAE (1 << 1) /* enable transmit dma */ #define UART011_RXDMAE (1 << 0) /* enable receive dma */ -#define UART01x_RSR_ANY (UART01x_RSR_OE|UART01x_RSR_BE|UART01x_RSR_PE|UART01x_RSR_FE) -#define UART01x_FR_MODEM_ANY (UART01x_FR_DCD|UART01x_FR_DSR|UART01x_FR_CTS) +#define UART01x_RSR_ANY (UART01x_RSR_OE | UART01x_RSR_BE | UART01x_RSR_PE | UART01x_RSR_FE) +#define UART01x_FR_MODEM_ANY (UART01x_FR_DCD | UART01x_FR_DSR | UART01x_FR_CTS) #ifndef __ASSEMBLY__ struct amba_device; /* in uncompress this is included but amba/bus.h is not */ @@ -220,8 +220,8 @@ struct amba_pl011_data { bool dma_rx_poll_enable; unsigned int dma_rx_poll_rate; unsigned int dma_rx_poll_timeout; - void (*init) (void); - void (*exit) (void); + void (*init)(void); + void (*exit)(void); }; #endif