Linux-GPIO Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] gpio: Drop superfluous dependencies on GPIOLIB
@ 2020-06-23 14:40 Geert Uytterhoeven
  2020-06-24 10:20 ` Bartosz Golaszewski
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-06-23 14:40 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski
  Cc: linux-gpio, linux-kernel, Geert Uytterhoeven

All config options for GPIO drivers are inside a big "if GPIOLIB ...
endif" block, so there is no reason for individual config options to
have expicit dependencies on GPIOLIB.  Hence remove them.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/gpio/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index f875ec95ba8c3a7a..291bffb5c7e58d7f 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -411,7 +411,7 @@ config GPIO_MXS
 
 config GPIO_OCTEON
 	tristate "Cavium OCTEON GPIO"
-	depends on GPIOLIB && CAVIUM_OCTEON_SOC
+	depends on CAVIUM_OCTEON_SOC
 	default y
 	help
 	  Say yes here to support the on-chip GPIO lines on the OCTEON
@@ -1118,7 +1118,7 @@ config GPIO_DLN2
 
 config HTC_EGPIO
 	bool "HTC EGPIO support"
-	depends on GPIOLIB && ARM
+	depends on ARM
 	help
 	  This driver supports the CPLD egpio chip present on
 	  several HTC phones.  It provides basic support for input
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: Drop superfluous dependencies on GPIOLIB
  2020-06-23 14:40 [PATCH] gpio: Drop superfluous dependencies on GPIOLIB Geert Uytterhoeven
@ 2020-06-24 10:20 ` Bartosz Golaszewski
  0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2020-06-24 10:20 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linus Walleij, linux-gpio, LKML

wt., 23 cze 2020 o 16:40 Geert Uytterhoeven <geert+renesas@glider.be>
napisał(a):
>
> All config options for GPIO drivers are inside a big "if GPIOLIB ...
> endif" block, so there is no reason for individual config options to
> have expicit dependencies on GPIOLIB.  Hence remove them.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  drivers/gpio/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index f875ec95ba8c3a7a..291bffb5c7e58d7f 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -411,7 +411,7 @@ config GPIO_MXS
>
>  config GPIO_OCTEON
>         tristate "Cavium OCTEON GPIO"
> -       depends on GPIOLIB && CAVIUM_OCTEON_SOC
> +       depends on CAVIUM_OCTEON_SOC
>         default y
>         help
>           Say yes here to support the on-chip GPIO lines on the OCTEON
> @@ -1118,7 +1118,7 @@ config GPIO_DLN2
>
>  config HTC_EGPIO
>         bool "HTC EGPIO support"
> -       depends on GPIOLIB && ARM
> +       depends on ARM
>         help
>           This driver supports the CPLD egpio chip present on
>           several HTC phones.  It provides basic support for input
> --
> 2.17.1
>

Applied, thanks!

Bartosz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 14:40 [PATCH] gpio: Drop superfluous dependencies on GPIOLIB Geert Uytterhoeven
2020-06-24 10:20 ` Bartosz Golaszewski

Linux-GPIO Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-gpio/0 linux-gpio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-gpio linux-gpio/ https://lore.kernel.org/linux-gpio \
		linux-gpio@vger.kernel.org
	public-inbox-index linux-gpio

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-gpio


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git