Skip to content

Commit 9ac4b58

Browse files
ukleinekBartosz Golaszewski
authored andcommitted
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: b9b1fc1 ("gpio: idio-16: Introduce the ACCES IDIO-16 GPIO library module") Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent dd4d315 commit 9ac4b58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpio/gpio-idio-16.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* GPIO library for the ACCES IDIO-16 family
44
* Copyright (C) 2022 William Breathitt Gray
55
*/
6+
7+
#define DEFAULT_SYMBOL_NAMESPACE "GPIO_IDIO_16"
8+
69
#include <linux/bits.h>
710
#include <linux/device.h>
811
#include <linux/err.h>
@@ -14,8 +17,6 @@
1417

1518
#include "gpio-idio-16.h"
1619

17-
#define DEFAULT_SYMBOL_NAMESPACE "GPIO_IDIO_16"
18-
1920
#define IDIO_16_DAT_BASE 0x0
2021
#define IDIO_16_OUT_BASE IDIO_16_DAT_BASE
2122
#define IDIO_16_IN_BASE (IDIO_16_DAT_BASE + 1)

0 commit comments

Comments
 (0)