platform/chrome: add HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Fri, 5 Apr 2024 13:41:51 +0000 (15:41 +0200)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 24 Apr 2024 08:45:59 +0000 (16:45 +0800)
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. We thus need to add HAS_IOPORT as dependency for those
drivers using them.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20240405134151.5560-2-schnelle@linux.ibm.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/Kconfig
drivers/platform/chrome/wilco_ec/Kconfig

index 7a83346bfa53d5346ab3cdaa57669883ea31ed8f..073616b5b5a097f920d7f2228f1c114e747686c9 100644 (file)
@@ -132,6 +132,7 @@ config CROS_EC_UART
 config CROS_EC_LPC
        tristate "ChromeOS Embedded Controller (LPC)"
        depends on CROS_EC && ACPI && (X86 || COMPILE_TEST)
+       depends on HAS_IOPORT
        help
          If you say Y here, you get support for talking to the ChromeOS EC
          over an LPC bus, including the LPC Microchip EC (MEC) variant.
index 49e8530ca0ac8d156f7407416d51033e210e31e2..d1648fb099acd62abcfd3163ceb5eed970e86a42 100644 (file)
@@ -3,6 +3,7 @@ config WILCO_EC
        tristate "ChromeOS Wilco Embedded Controller"
        depends on X86 || COMPILE_TEST
        depends on ACPI && CROS_EC_LPC && LEDS_CLASS
+       depends on HAS_IOPORT
        help
          If you say Y here, you get support for talking to the ChromeOS
          Wilco EC over an eSPI bus. This uses a simple byte-level protocol