Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fd2bf3d authored by Alexandre Courbot's avatar Alexandre Courbot
Browse files

Remove GENERIC_GPIO config option



GENERIC_GPIO has been made equivalent to GPIOLIB in architecture code
and all driver code has been switch to depend on GPIOLIB. It is thus
safe to have GENERIC_GPIO removed.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 76ec9d18
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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>

+0 −3
Original line number Diff line number Diff line
@@ -56,9 +56,6 @@ config GENERIC_CALIBRATE_DELAY
	bool
	default y

config GENERIC_GPIO
	bool

config ZONE_DMA
	bool
	default y
+0 −3
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+0 −3
Original line number Diff line number Diff line
@@ -92,9 +92,6 @@ config SWIOTLB
config IOMMU_HELPER
	def_bool SWIOTLB

config GENERIC_GPIO
	bool

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Loading