Message ID | 2986a485-935d-4ab2-9a16-4a85288aa15a@camlingroup.com |
---|---|
State | New |
Headers | show
Received: from eu-smtp-delivery-197.mimecast.com (eu-smtp-delivery-197.mimecast.com [185.58.85.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 583CA189509 for <linux-serial@vger.kernel.org>; Mon, 26 Aug 2024 15:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724686928; cv=none; b=szqnsQllWlriavrAk/pe99h0Do4UjNrn5SDxS2kLP+S/grOp+LLpvj/5zNsCb3qr9SK/XevRCvb0lk+XPptn2kr4lAQWjm09yC+JGjZKKgDVQjHBonzPrqlw93XZWk/a8CfwpT+AJN+nrWDlc9g3wKNrzDUBM+k08VvyGbMwm9c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724686928; c=relaxed/simple; bh=xlivHA5ql1it85zYsrc8TIQfQPV0ClIQCYh3/vL6HX4=; h=Message-ID:Date:Subject:From:To:Cc:References:In-Reply-To: MIME-Version:Content-Type; b=EE1Zq2x8lQcfd3cUKDUcW8rQpj5a4w5RQR2LtXiTbHPUk0dE/K5Cq5MFoj0Da+YpNwhY1KvIYQ1vCt+KrdnyIXrKFbZb3CaZzYZJWM5+aR9p5TYnb9j3z+8TbF/5Qh/aWf/zTrXewbwWY47OCYxDgvDbVbbxYSLK6Rz+VRg9BIs= 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=jYvB0l4T; arc=none smtp.client-ip=185.58.85.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="jYvB0l4T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=camlingroup.com; s=mimecast20210310; t=1724686925; 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=jYvB0l4TCns0hEy25y3gM2LNnOYAd5tJnRUVgMXvKwD7HdiarcdaR+9cPP+NxYlwFQeA62 jbuVoKkQhvZJmcXN5atpv7mUVvxEzgYvV/drWF8oIkgTtlwEbuQphiSzIqsUUMsIyhV/gQ oJz/+YfrxZ5+i3TLhVj1Q3a13hVJl8U= Received: from GBR01-CWX-obe.outbound.protection.outlook.com (mail-cwxgbr01lp2045.outbound.protection.outlook.com [104.47.85.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id uk-mta-306-2Ks6rO9TN5CismZe_a-SOg-2; Mon, 26 Aug 2024 16:42:04 +0100 X-MC-Unique: 2Ks6rO9TN5CismZe_a-SOg-2 Received: from CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:142::9) by CWXP123MB6192.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:1aa::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 15:42:03 +0000 Received: from CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM ([fe80::f866:62f9:716e:ca4f]) by CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM ([fe80::f866:62f9:716e:ca4f%4]) with mapi id 15.20.7897.021; Mon, 26 Aug 2024 15:42:03 +0000 Message-ID: <2986a485-935d-4ab2-9a16-4a85288aa15a@camlingroup.com> Date: Mon, 26 Aug 2024 17:42:01 +0200 User-Agent: Mozilla Thunderbird Subject: [PATCH v4 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 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>, Pawel Lenkow <p.lenkow@camlintechnologies.com>, Kirill Yatsenko <kirill.yatsenko@camlingroup.com> References: <9c1f8fd4-a2a5-4f92-9e86-2cf0103b1908@camlingroup.com> In-Reply-To: <9c1f8fd4-a2a5-4f92-9e86-2cf0103b1908@camlingroup.com> X-ClientProxiedBy: WA2P291CA0007.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:1e::10) To CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:142::9) 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: CWXP123MB5267:EE_|CWXP123MB6192:EE_ X-MS-Office365-Filtering-Correlation-Id: 01ebb7e1-55b0-4366-f868-08dcc5e5a1ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014 X-Microsoft-Antispam-Message-Info: =?utf-8?q?+gldsdAE3ZEsSM3lBdasVtNa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gdNki?= =?utf-8?q?SABeNo8Xw1sn5a3qtipYbN+TUmtmSbjcY+96Ow7uqvPhUjkDksNL1IcfmWH5iFHrN?= =?utf-8?q?w//MteYfUMHSTKn0JrDkAMklwp3ZaJOCrt5/yBrZst4boYn6FgdUoOJIJruEHPvSH?= =?utf-8?q?zQ4o6jd6d2GhVoCYxqmC/+DmTBR736iM6UQWhzeVWbk358PwouvPIjdz5lxMR7BF/?= =?utf-8?q?oNr0/m6u3vXp7kT9t2fadgWtYN3siqEdAQsTFCxpjTL7kin+ywftFETThiApiOzqQ?= =?utf-8?q?KZpvAi0/WQ4KycNCFJ2brE6pTqTFYEAMRxlP6krD55/AptCaTlAXnOaqDMdYsJ0P/?= =?utf-8?q?wcBOsBFSSqQM1mjnRF4gtOp/wDPHOwqd/fvAJA3pea9i/hG9y96MKRCNIGBDopM0g?= =?utf-8?q?K9pUVX7iSJ+lxlVN3xO5Fu/3TlEja444O8g=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NcsuFbmXqKPuggp5WZ207HTzWI53?= =?utf-8?q?RsHggPW0Ab+6AnXTM9lPO6BkByJ5YyHmnfBj0tFf46oAcsNYgNv9/lVMK2kFq9VlH?= =?utf-8?q?3W1H845Pe5zH/NIRQKAj3+Kh1w+wjMtPTSJAdHu5YxlxVkPYATCPZ6yBTz+Ehcieg?= =?utf-8?q?o4cjrUTiwivUgRXU4+3ZObZJtFmup8KzGZQoQPw2h+l3XXgNI+Eekl+oIwYHU0zFL?= =?utf-8?q?6/Tk4tzwahABoF6UYiZUAHydsJwzGsNsA29MAV+sxdvUoD7WYnTbnUBvfveph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?utf-8?q?wEzyfPSEB+VHl+D78XtJQSkSGQDxVZS6piSQRA4xXEOV2XfIcuGryamRDklt0YJjb?= =?utf-8?q?pUOEDg5XRJnmkWeDxrAI0speIiCC6mUq12MNd0Fw+whKcLD5CZCgI9mh+/9+rid2l?= =?utf-8?q?EkPOrnYGPdvMWOif/PYc7GNvth/QLoWrP58Qxgif2dn82EiPq0Aejs3ArSSBvWBtN?= =?utf-8?q?Zl5XeXkNGe8ulwgiak9btjSbNqeHTt/bmuUkWSR4ECKYJ3l2LGfWBKhZ80bK74z/z?= =?utf-8?q?YRIS6Elxd2HdpBi255l+4jeBWv8LBLX9gqe6FkdlYSfdFOW0p8H+KRjII6UDqsD48?= =?utf-8?q?Lln2AynnYum2xyUoIp+ir5E0y8BkfmlgQDc4A+VoaNg4GVz3LuIIXKZaN9p6m4mdc?= =?utf-8?q?h0hHQebi/eSN4BiaarG+QGB8FbB32Tvrjw=3D=3D?= X-OriginatorOrg: camlingroup.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01ebb7e1-55b0-4366-f868-08dcc5e5a1ff X-MS-Exchange-CrossTenant-AuthSource: CWXP123MB5267.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 15:42:03.7075 (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: morkmiD8PkL+XwU91Tn8GwrGwhgy+LbnHsLts5x0sZ3m+i8hG6frkS2JQIQMYUN6Gh+wlQ2cgjyyj0Qzhtrio/f2s039JzDXevHZ4GvfYWM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP123MB6192 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(-)