summary refs log tree commit diff
path: root/drivers/gpio/Kconfig
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-01-11 11:56:32 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-01-24 17:23:15 +0200
commita1ce76e89907a69713f729ff21db1efa00f3bb47 (patch)
tree2e1f11f56e98ef8032459ebaa4cf51ea54ea0bd9 /drivers/gpio/Kconfig
parentb3376ed7d82f5937cecb17ff92d5d8dc0762e1c1 (diff)
downloadlinux-a1ce76e89907a69713f729ff21db1efa00f3bb47.tar.gz
gpio: tps68470: Allow building as module
The gpio-tps68470 driver binds to a tps68470-gpio platform-device which
itself gets instantiated by a special MFD driver from
drivers/platform/x86/intel/int3472/tps68470.c

This MFD driver itself can be built as a module, so it makes no sense to
force the gpio-tps68470 driver to always be built-in.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r--drivers/gpio/Kconfig6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 1c211b4c63be..04c48f315b05 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1380,7 +1380,7 @@ config GPIO_TPS65912
 	  This driver supports TPS65912 GPIO chip.
 
 config GPIO_TPS68470
-	bool "TPS68470 GPIO"
+	tristate "TPS68470 GPIO"
 	depends on INTEL_SKL_INT3472
 	help
 	  Select this option to enable GPIO driver for the TPS68470
@@ -1390,10 +1390,6 @@ config GPIO_TPS68470
 	  input or output as appropriate, the sensor related GPIOs
 	  are "output only" GPIOs.
 
-	  This driver config is bool, as the GPIO functionality
-	  of the TPS68470 must be available before dependent
-	  drivers are loaded.
-
 config GPIO_TQMX86
 	tristate "TQ-Systems QTMX86 GPIO"
 	depends on MFD_TQMX86 || COMPILE_TEST