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

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>

authored by

David Brownell and committed by
Linus Torvalds
926b1e2c 96fc3a45

+6 -2
+1 -1
drivers/gpio/Kconfig
··· 1 1 # 2 - # GPIO infrastructure and expanders 2 + # platform-neutral GPIO infrastructure and expanders 3 3 # 4 4 5 5 config ARCH_WANT_OPTIONAL_GPIOLIB
+5 -1
drivers/gpio/Makefile
··· 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. 2 6 3 7 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG 4 8