]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: aspeed: #undef field_{get,prep}() before local definition
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 6 Nov 2025 13:33:52 +0000 (14:33 +0100)
committerYury Norov (NVIDIA) <yury.norov@gmail.com>
Mon, 24 Nov 2025 19:15:46 +0000 (14:15 -0500)
commitd1e1a7271e97bf679d355777a10fa8c0dc259b86
tree478828e0df497588defecb87d12af9908739607b
parentd51b09a0feb63029be64226502cbcf53adc434b0
gpio: aspeed: #undef field_{get,prep}() before local definition

Prepare for the advent of globally available common field_get() and
field_prep() macros by undefining the symbols before defining local
variants.  This prevents redefinition warnings from the C preprocessor
when introducing the common macros later.

Suggested-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
drivers/gpio/gpio-aspeed.c