[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251103064934.4611-1-chuguangqing@inspur.com>
Date: Mon, 3 Nov 2025 14:49:34 +0800
From: Chu Guangqing <chuguangqing@...pur.com>
To: <mkl@...gutronix.de>, <mailhol@...nel.org>
CC: <linux-can@...r.kernel.org>, <linux-kernel@...r.kernel.org>, Chu Guangqing
	<chuguangqing@...pur.com>
Subject: [PATCH] can: janz-ican3: Fix a typo error for DESC_INVALID
The macro definition DESC_IVALID should be DESC_INVALID, as there is a
spelling error here.
Signed-off-by: Chu Guangqing <chuguangqing@...pur.com>
---
 drivers/net/can/janz-ican3.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c
index 1efdd1fd8caa..7ae1f4ba4627 100644
--- a/drivers/net/can/janz-ican3.c
+++ b/drivers/net/can/janz-ican3.c
@@ -62,7 +62,7 @@
 #define DESC_VALID		0x80
 #define DESC_WRAP		0x40
 #define DESC_INTERRUPT		0x20
-#define DESC_IVALID		0x10
+#define DESC_INVALID		0x10
 #define DESC_LEN(len)		(len)
 
 /* Janz ICAN3 Firmware Messages */
@@ -1723,11 +1723,11 @@ static netdev_tx_t ican3_xmit(struct sk_buff *skb, struct net_device *ndev)
 	ican3_put_echo_skb(mod, skb);
 
 	/*
-	 * the programming manual says that you must set the IVALID bit, then
+	 * the programming manual says that you must set the INVALID bit, then
 	 * interrupt, then set the valid bit. Quite weird, but it seems to be
 	 * required for this to work
 	 */
-	desc.control |= DESC_IVALID;
+	desc.control |= DESC_INVALID;
 	memcpy_toio(desc_addr, &desc, sizeof(desc));
 
 	/* generate a MODULbus interrupt to the microcontroller */
-- 
2.43.7
Powered by blists - more mailing lists