]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: k210: Undef K210_PC_DEFAULT
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Wed, 13 Nov 2024 07:12:01 +0000 (15:12 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Nov 2024 22:51:05 +0000 (23:51 +0100)
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: d4c34d09ab03 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver")
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/20241113071201.5440-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-k210.c

index caf20215aaba5e9bfac6d3af34804f14c1e0dc69..eddb01796a83eb86c8c5bcf6788c999e8bf2926a 100644 (file)
@@ -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.