Message ID | 8314e995-6f7a-4e9e-98dd-8c424d25b854@camlingroup.com |
---|---|
State | Superseded |
Headers | show
Received: from eu-smtp-delivery-197.mimecast.com (eu-smtp-delivery-197.mimecast.com [185.58.86.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DC1518E74C for <linux-serial@vger.kernel.org>; Fri, 23 Aug 2024 16:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.86.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724432092; cv=none; b=rTmECWAj9i6lhBEn9tkyyuzJ1M7YGwaGjQSGQ4bpqd52bcJ7+JjYJI17hYERGsOhfpWykxoa/TYNXwLEufr3PbYuGYvqOAvPLJApQnFfnmz1PFQBBog8UQPmuXY1pEf25aMEpCEWXTw3qIR10Zz+Y3lOoiDO8ga1uRfh2vfHfN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724432092; c=relaxed/simple; bh=xlivHA5ql1it85zYsrc8TIQfQPV0ClIQCYh3/vL6HX4=; h=Message-ID:Date:Subject:From:To:Cc:References:In-Reply-To: MIME-Version:Content-Type; b=CrZOLGVGfnwUVorAmj3Dmq8ELqiLQLknwr5zejS8uJLBphNsM1+whtvOoHw72g3n7HaUlQaij0hIpvZnhHTytlM/es2FAvz/zYW93ffp2zq46PdW1vYy1encTgWRdl9ymTByiaaAeMTSdb+A5UTybFw4fZnt57t/V/Nlp2/Rb/8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=camlingroup.com; spf=pass smtp.mailfrom=camlingroup.com; dkim=pass (1024-bit key) header.d=camlingroup.com header.i=@camlingroup.com header.b=hIU5u7x3; arc=none smtp.client-ip=185.58.86.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=camlingroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=camlingroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=camlingroup.com header.i=@camlingroup.com header.b="hIU5u7x3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=camlingroup.com; s=mimecast20210310; t=1724432088; 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=c728VZv6v7K8l+pge5+f5HkAlqnOFc8OqhDpJIZ4pus=; b=hIU5u7x3igji6eCBJ3fj1Pz7XUG7KpbrcmpF3ZdTIQ/3p8YRXe6kN5m571KBy/irvPZxPi SxYNunClqG7TzfUmS4Gm1GD8r2Mj4YWVtI1ZAKgUw0JhYsQLAjAUy+A0ynxMO/NP41kuiW CMBUJBMhDOYwLYldjOkyhX5CYEbmVk4= Received: from GBR01-CWX-obe.outbound.protection.outlook.com (mail-cwxgbr01lp2042.outbound.protection.outlook.com [104.47.85.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id uk-mta-235-iZ77_G1tN9CxZ2xa7eDk9g-1; Fri, 23 Aug 2024 17:54:47 +0100 X-MC-Unique: iZ77_G1tN9CxZ2xa7eDk9g-1 Received: from LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:20b::7) by CWLP123MB3105.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:5c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Fri, 23 Aug 2024 16:54:46 +0000 Received: from LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM ([fe80::55a9:7dae:8812:f567]) by LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM ([fe80::55a9:7dae:8812:f567%5]) with mapi id 15.20.7897.014; Fri, 23 Aug 2024 16:54:46 +0000 Message-ID: <8314e995-6f7a-4e9e-98dd-8c424d25b854@camlingroup.com> Date: Fri, 23 Aug 2024 18:54:45 +0200 User-Agent: Mozilla Thunderbird Subject: [PATCH v3 2/3] serial: sc16is7xx: fix copy-paste errors in EFR_SWFLOWx_BIT constants From: Lech Perczak <lech.perczak@camlingroup.com> To: linux-serial@vger.kernel.org, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Hugo Villeneuve <hvilleneuve@dimonoff.com>, Andy Shevchenko <andy@kernel.org>, =?utf-8?q?Krzysztof_Drobi=C5=84ski?= <k.drobinski@camlintechnologies.com>, =?utf-8?q?Pawe=C5=82_Lenkow?= <pawel.lenkow@camlingroup.com>, Kirill Yatsenko <kirill.yatsenko@camlingroup.com> References: <7deb753f-bf86-47ce-89bf-8277aca4293e@camlingroup.com> In-Reply-To: <7deb753f-bf86-47ce-89bf-8277aca4293e@camlingroup.com> X-ClientProxiedBy: BEXP281CA0003.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10::13) To LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:20b::7) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: <linux-serial.vger.kernel.org> List-Subscribe: <mailto:linux-serial+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-serial+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO4P123MB5272:EE_|CWLP123MB3105:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dffcdac-b3c7-4202-e9a7-08dcc3944b4a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016 X-Microsoft-Antispam-Message-Info: =?utf-8?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FoRnZMmc6yxcyjdPs0aDvQTfcaL0IM4ivGUJA79Hk?= =?utf-8?q?eqW1IvRSO6vgZkYJEmyxanZfJydMUMWK3hXtwUz4coy6Gohv5WDKWV+InOKX87lz1?= =?utf-8?q?sX4jq0Tqskl2wVpfUWNRN1Gq09DlbvKqA8EoEv39ZkkGcrdugg22i6eevrmYpOkip?= =?utf-8?q?+bWDcQrVLNqnVb9dd4zUS+caWVlNzWig3dRq88rlQDMe+x0KWpsbt1T4fgO3kfkp4?= =?utf-8?q?9wRAXbKMg0JCiYDr/ZWmpghglaJP9rwk+nmzZ9bKtB+2KFFTtzWj0qzFAkZFCwpVI?= =?utf-8?q?RX+Su3qaN6p2kiYN+U4M6ZQRtrG3wI9XCoSklCEUhINzTtmvwpb6Uw2AuRNbxeCHr?= =?utf-8?q?wWkhlfnoxA0Stm/ssWzXuoQK4CTJ2ihi0zIoiwqJBgIcz5oQax4Z045NZa+QNtsWL?= =?utf-8?q?ZK+4MvSCZe2X2JYqzM2s1QEjokXlXmGWO3A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XgYLHK9ZYYfPvsO618T6F81Dl/Nz?= =?utf-8?q?e/Ki+AVp3n2KtQXRCpTM5bOGIggEbEOm07ODBV8TeUow5ueuxdAfnrSeXnERBYSnP?= =?utf-8?q?i2DjYrhGUClmZr7mGjggvL3Xg0xtEjujmccUFH1HVoq0a2B6mfXgEEHTkgyCJxRiP?= =?utf-8?q?tGBj4DkxZ9e0cAmvzpJakHAL8eXeWONvQpc3KvrljZlG2cLESDQ/DXtfdaGV7+XrT?= =?utf-8?q?MEzScs53MP4oZ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EeVqd32ciImLXUpVyCDyoICOdWIDAJQ/kY6Wynt9jo3+80u?= =?utf-8?q?6Q6YQW1XF9Y05RF87lKmrI/a9WlZ7pFrWTCp2HFS2kSBPWWx2jXDK/14HmqGU1F4L?= =?utf-8?q?vwTKlkbw7HRUj1Ft4II3yTKPHK3Fivxrcw8wzHLIYPbiTsD3/onelBqU43D5XiUhr?= =?utf-8?q?axAUK8HioENXSgRAii7jGIdoCraGmBk8T6J1x4CkhGEdB+7GnJtp0KTgS0u07mpJz?= =?utf-8?q?craZYZ+5fhvZ4EnVlCJ/tkDtHbUVeVgh4OZ3eCvOE/jX0u54j5/ahcttkk4Z9W+Fe?= =?utf-8?q?GmdGntQW3JFDDJuK0Fb5oVCycl/sA57IlBjnSHytoN4OAtGTvK1ZzNZmPIyldrC+M?= =?utf-8?q?m/10ZJmxjTEsWSozsOPKarB0XzQVGOYHh9McbVnVdN1qInBMsYYN9UWMl0c5Y98pr?= =?utf-8?q?MxqHG/7tEI9wNbJ2UlGapJNAS64+QtlwWtwlvCsXRFJN8SKNLZhSOyqc3pThLZ8tZ?= =?utf-8?q?Y2c30bG4rB3tijDwjAZeoxReXtC1xOWZA=3D=3D?= X-OriginatorOrg: camlingroup.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dffcdac-b3c7-4202-e9a7-08dcc3944b4a X-MS-Exchange-CrossTenant-AuthSource: LO4P123MB5272.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 16:54:46.6601 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fd4b1729-b18d-46d2-9ba0-2717b852b252 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cLBwOgcMQcNO2w3ITjaVi2jn/6qgOUaErsnt/Of2s56Eh7cZCRyuQT0V2KW2fkQ4GxLfSBOPwGsVX+1YlzbW4Ks1dLBQ07hy7v3oPkd1k1g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP123MB3105 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: camlingroup.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable |
Series |
serial: sc16is7xx: cosmetic cleanup
|
expand
|
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 8a2020f9930e..36b7c682ae94 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -266,9 +266,9 @@ * and writing to IER[7:4], * FCR[5:4], MCR[7:5] */ -#define SC16IS7XX_EFR_SWFLOW3_BIT (1 << 3) /* SWFLOW bit 3 */ -#define SC16IS7XX_EFR_SWFLOW2_BIT (1 << 2) /* SWFLOW bit 2 - * +#define SC16IS7XX_EFR_SWFLOW3_BIT (1 << 3) +#define SC16IS7XX_EFR_SWFLOW2_BIT (1 << 2) + /* * SWFLOW bits 3 & 2 table: * 00 -> no transmitter flow * control @@ -280,10 +280,10 @@ * XON1, XON2, XOFF1 and * XOFF2 */ -#define SC16IS7XX_EFR_SWFLOW1_BIT (1 << 1) /* SWFLOW bit 2 */ -#define SC16IS7XX_EFR_SWFLOW0_BIT (1 << 0) /* SWFLOW bit 3 - * - * SWFLOW bits 3 & 2 table: +#define SC16IS7XX_EFR_SWFLOW1_BIT (1 << 1) +#define SC16IS7XX_EFR_SWFLOW0_BIT (1 << 0) + /* + * SWFLOW bits 1 & 0 table: * 00 -> no received flow * control * 01 -> receiver compares
Comments attached to bits 0 and 1 incorrectly referenced bits 2 and 3, which don't match the datasheet - fix them. At the same time remove comments for individual constants, as they add nothing to the definitions themselves. Signed-off-by: Lech Perczak <lech.perczak@camlingroup.com> --- Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jirislaby@kernel.org> Cc: Hugo Villeneuve <hvilleneuve@dimonoff.com> Cc: Andy Shevchenko <andy@kernel.org> --- drivers/tty/serial/sc16is7xx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)