pinctrl: k210: Modify the wrong "#undef"
Subsystems (4)
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
@@ -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
Damien Le Moal
maintainerQuoted 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
Signed-off-by zhang jiao <[email protected]>
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@@ -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
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".Signed-off-by zhang jiao <[email protected]>--- 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
Quoted 2 lines · On Wed, Dec 11, 2024 at 11:32 PM <[email protected]> wrote:
This patch was applied to riscv/linux.git (fixes)
by Linus Walleij <[email protected]>:
No I did not.
Yours,
Linus Walleij