Skip to contentSkip to conversation

pinctrl: k210: Modify the wrong "#undef"

PATCH Applied zhangjiao2 4 participants 4 messages Nov 13, 2024 – Dec 20, 2024

Subsystems (4)
lore
Share & tools
lore

zhangjiao2

author
#0 lore raw

PATCH 1/1 pinctrl: k210: Modify the wrong "#undef"

From: zhang jiao <[email protected]>

Here shuld be undef "K210_PC_DEFAULT", not "DEFAULT".

---
 drivers/pinctrl/pinctrl-k210.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-k210.c +1 -1
index caf20215aaba..eddb01796a83 100644
@@ -181,7 +181,7 @@ static const u32 k210_pinconf_mode_id_to_mode[] = {
 	[K210_PC_DEFAULT_INT13] = K210_PC_MODE_IN | K210_PC_PU,
 };
 
-#undef DEFAULT
+#undef K210_PC_DEFAULT
 
 /*
  * Pin functions configuration information.
Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 3 lines · On 11/13/24 10:20, zhangjiao2 wrote:

From: zhang jiao <[email protected]>

Here shuld be undef "K210_PC_DEFAULT", not "DEFAULT".

Here ? Please be specific.
Also:

s/shuld/must

So something like:

The definition of the array k210_pinconf_mode_id_to_mode is done using the temporary macro K210_PC_DEFAULT. When this macro is not needed anymore and its definition removed, make sure to use its name in the #undef statement instead of the incorrect "DEFAULT" name.

Quoted 2 lines

This needs a Fixes tag as well.

Quoted 17 lines
---
 drivers/pinctrl/pinctrl-k210.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-k210.c +1 -1
index caf20215aaba..eddb01796a83 100644
@@ -181,7 +181,7 @@ static const u32 k210_pinconf_mode_id_to_mode[] = {
 	[K210_PC_DEFAULT_INT13] = K210_PC_MODE_IN | K210_PC_PU,
 };
 
-#undef DEFAULT
+#undef K210_PC_DEFAULT
 
 /*
  * Pin functions configuration information.
Signature · 2 lines
Damien Le Moal
Western Digital Research
#2 lore raw
In reply to zhangjiao2
This patch was applied to riscv/linux.git (fixes) by Linus Walleij <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (fixes)
by Linus Walleij <[email protected]>:

Quoted 8 lines · On Wed, 13 Nov 2024 09:20:29 +0800 you wrote:

From: zhang jiao <[email protected]>

Here shuld be undef "K210_PC_DEFAULT", not "DEFAULT".

---
 drivers/pinctrl/pinctrl-k210.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- pinctrl: k210: Modify the wrong "#undef"

    https://git.kernel.org/riscv/c/7e86490c5dee

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html