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

[PATCH] chardev: GPIO for SCx200 & PC-8736x: add proper Kconfig, Makefile entries

Replace the temp makefile hacks with proper CONFIG entries, which are also
added to Kconfig.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jim Cromie and committed by
Linus Torvalds
7a8e2a5e 23916a8e

+26 -1
+23
drivers/char/Kconfig
··· 939 939 config SCx200_GPIO 940 940 tristate "NatSemi SCx200 GPIO Support" 941 941 depends on SCx200 942 + select NSC_GPIO 942 943 help 943 944 Give userspace access to the GPIO pins on the National 944 945 Semiconductor SCx200 processors. 945 946 946 947 If compiled as a module, it will be called scx200_gpio. 948 + 949 + config PC8736x_GPIO 950 + tristate "NatSemi PC8736x GPIO Support" 951 + depends on X86 952 + default SCx200_GPIO # mostly N 953 + select NSC_GPIO # needed for support routines 954 + help 955 + Give userspace access to the GPIO pins on the National 956 + Semiconductor PC-8736x (x=[03456]) SuperIO chip. The chip 957 + has multiple functional units, inc several managed by 958 + hwmon/pc87360 driver. Tested with PC-87366 959 + 960 + If compiled as a module, it will be called pc8736x_gpio. 961 + 962 + config NSC_GPIO 963 + tristate "NatSemi Base GPIO Support" 964 + # selected by SCx200_GPIO and PC8736x_GPIO 965 + # what about 2 selectors differing: m != y 966 + help 967 + Common support used (and needed) by scx200_gpio and 968 + pc8736x_gpio drivers. If those drivers are built as 969 + modules, this one will be too, named nsc_gpio 947 970 948 971 config CS5535_GPIO 949 972 tristate "AMD CS5535/CS5536 GPIO (Geode Companion Device)"
+3 -1
drivers/char/Makefile
··· 81 81 obj-$(CONFIG_PPDEV) += ppdev.o 82 82 obj-$(CONFIG_NWBUTTON) += nwbutton.o 83 83 obj-$(CONFIG_NWFLASH) += nwflash.o 84 - obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o nsc_gpio.o pc8736x_gpio.o 84 + obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o 85 + obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o 86 + obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o 85 87 obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o 86 88 obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o 87 89 obj-$(CONFIG_TANBAC_TB0219) += tb0219.o