Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374687
b: refs/heads/master
c: 7fd2bf3
h: refs/heads/master
i:
  374685: 0967596
  374683: dc9cae7
  374679: 419a5ea
  374671: d6c438f
  374655: 821bc6a
v: v3
  • Loading branch information
Alexandre Courbot committed Apr 16, 2013
1 parent e28c5d2 commit 6d29184
Show file tree
Hide file tree
Showing 23 changed files with 8 additions and 67 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76ec9d18b8972f1b228f819f6126c9f022b3e642
refs/heads/master: 7fd2bf3d325478e6715cce3ede7de641ff596183
10 changes: 5 additions & 5 deletions trunk/Documentation/gpio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must
not care how it's implemented.)

That said, if the convention is supported on their platform, drivers should
use it when possible. Platforms must declare GENERIC_GPIO support in their
Kconfig (boolean true), and provide an <asm/gpio.h> file. Drivers that can't
work without standard GPIO calls should have Kconfig entries which depend
on GENERIC_GPIO. The GPIO calls are available, either as "real code" or as
optimized-away stubs, when drivers use the include file:
use it when possible. Platforms must select ARCH_REQUIRE_GPIOLIB or
ARCH_WANT_OPTIONAL_GPIOLIB in their Kconfig. Drivers that can't work without
standard GPIO calls should have Kconfig entries which depend on GPIOLIB. The
GPIO calls are available, either as "real code" or as optimized-away stubs,
when drivers use the include file:

#include <linux/gpio.h>

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

config GENERIC_GPIO
bool

config ZONE_DMA
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ config MIGHT_HAVE_PCI
config SYS_SUPPORTS_APM_EMULATION
bool

config GENERIC_GPIO
bool

config HAVE_TCM
bool
select GENERIC_ALLOCATOR
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-orion/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode)
}

/*
* GENERIC_GPIO primitives.
* GPIO primitives.
*/
static int orion_gpio_request(struct gpio_chip *chip, unsigned pin)
{
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ config SWIOTLB
config IOMMU_HELPER
def_bool SWIOTLB

config GENERIC_GPIO
bool

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/avr32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ config AVR32
There is an AVR32 Linux project with a web page at
http://avr32linux.org/.

config GENERIC_GPIO
def_bool n

config STACKTRACE_SUPPORT
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ config GENERIC_BUG
config ZONE_DMA
def_bool y

config GENERIC_GPIO
def_bool n

config FORCE_MAX_ZONEORDER
int
default "14"
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/hexagon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ source "mm/Kconfig"

source "kernel/Kconfig.hz"

config GENERIC_GPIO
def_bool n

endmenu

source "init/Kconfig"
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ config GENERIC_CALIBRATE_DELAY
config HAVE_SETUP_PER_CPU_AREA
def_bool y

config GENERIC_GPIO
bool

config DMI
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ config ARCH_HAS_ILOG2_U32
config ARCH_HAS_ILOG2_U64
bool

config GENERIC_GPIO
bool

config GENERIC_HWEIGHT
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/metag/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ config GENERIC_HWEIGHT
config GENERIC_CALIBRATE_DELAY
def_bool y

config GENERIC_GPIO
def_bool n

config NO_IOPORT
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ config GENERIC_HWEIGHT
config GENERIC_CALIBRATE_DELAY
def_bool y

config GENERIC_GPIO
bool

config GENERIC_CSUM
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,6 @@ config GENERIC_ISA_DMA_SUPPORT_BROKEN
config ISA_DMA_API
bool

config GENERIC_GPIO
bool

config HOLES_IN_ZONE
bool

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/openrisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ config GENERIC_HWEIGHT
config NO_IOPORT
def_bool y

config GENERIC_GPIO
def_bool n

config TRACE_IRQFLAGS_SUPPORT
def_bool y

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ config GENERIC_HWEIGHT
bool
default y

config GENERIC_GPIO
bool
help
Generic GPIO API support

config PPC
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ config GENERIC_CSUM
config GENERIC_HWEIGHT
def_bool y

config GENERIC_GPIO
def_bool n

config GENERIC_CALIBRATE_DELAY
bool

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ config GENERIC_ISA_DMA
bool
default y if SPARC32

config GENERIC_GPIO
bool
help
Generic GPIO API support

config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/unicore32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ config UNICORE32
designs licensed by PKUnity Ltd.
Please see web page at <http://www.pkunity.com/>.

config GENERIC_GPIO
bool

config GENERIC_CSUM
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ config GENERIC_BUG_RELATIVE_POINTERS
config GENERIC_HWEIGHT
def_bool y

config GENERIC_GPIO
bool

config ARCH_MAY_HAVE_PC_FDC
def_bool y
depends on ISA_DMA_API
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ config RWSEM_XCHGADD_ALGORITHM
config GENERIC_HWEIGHT
def_bool y

config GENERIC_GPIO
bool

config ARCH_HAS_ILOG2_U32
def_bool n

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ config GPIO_DEVRES
menuconfig GPIOLIB
bool "GPIO Support"
depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
select GENERIC_GPIO
help
This enables GPIO support through the generic GPIO library.
You only need to enable this, if you also want to enable
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpio/gpio-lpc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int __get_gpo_state_p3(struct lpc32xx_gpio_chip *group,
}

/*
* GENERIC_GPIO primitives.
* GPIO primitives.
*/
static int lpc32xx_gpio_dir_input_p012(struct gpio_chip *chip,
unsigned pin)
Expand Down

0 comments on commit 6d29184

Please sign in to comment.