Skip to content

Commit 926b1e2

Browse files
David Brownelltorvalds
authored andcommitted
drivers/gpio is platform-neutral
Update Kconfig and Makefile in drivers/gpio to discourage inappropriate addition of platform-specific code. [akpm@linux-foundation.org: fix tpyo] Signed-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 96fc3a4 commit 926b1e2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎drivers/gpio/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# GPIO infrastructure and expanders
2+
# platform-neutral GPIO infrastructure and expanders
33
#
44

55
config ARCH_WANT_OPTIONAL_GPIOLIB

‎drivers/gpio/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# gpio support: dedicated expander chips, etc
1+
# generic gpio support: dedicated expander chips, etc
2+
#
3+
# NOTE: platform-specific GPIO drivers don't belong in the
4+
# drivers/gpio directory; put them with other platform setup
5+
# code, IRQ controllers, board init, etc.
26

37
ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG
48

0 commit comments

Comments
 (0)