Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: idio-16: Actually make use of the GPIO_IDIO_16 symbol namespace

DEFAULT_SYMBOL_NAMESPACE must already be defined when <linux/export.h>
is included. So move the define above the include block.

Fixes: b9b1fc1ae119 ("gpio: idio-16: Introduce the ACCES IDIO-16 GPIO library module")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: William Breathitt Gray <wbg@kernel.org>
Link: https://lore.kernel.org/r/20241203172631.1647792-2-u.kleine-koenig@baylibre.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Uwe Kleine-König and committed by
Bartosz Golaszewski
9ac4b58f dd4d315f

+3 -2
+3 -2
drivers/gpio/gpio-idio-16.c
··· 3 3 * GPIO library for the ACCES IDIO-16 family 4 4 * Copyright (C) 2022 William Breathitt Gray 5 5 */ 6 + 7 + #define DEFAULT_SYMBOL_NAMESPACE "GPIO_IDIO_16" 8 + 6 9 #include <linux/bits.h> 7 10 #include <linux/device.h> 8 11 #include <linux/err.h> ··· 16 13 #include <linux/types.h> 17 14 18 15 #include "gpio-idio-16.h" 19 - 20 - #define DEFAULT_SYMBOL_NAMESPACE "GPIO_IDIO_16" 21 16 22 17 #define IDIO_16_DAT_BASE 0x0 23 18 #define IDIO_16_OUT_BASE IDIO_16_DAT_BASE