Skip to content

Commit

Permalink
pinctrl: k210: Undef K210_PC_DEFAULT
Browse files Browse the repository at this point in the history
[ Upstream commit 7e86490 ]

When the temporary macro K210_PC_DEFAULT is not needed anymore,
use its name in the #undef statement instead of
the incorrect "DEFAULT" name.

Fixes: d4c34d0 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver")
Signed-off-by: zhang jiao <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
zhang jiao authored and gregkh committed Dec 5, 2024
1 parent d5b9cb9 commit ca9cf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-k210.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,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.
Expand Down

0 comments on commit ca9cf0f

Please sign in to comment.