[PATCH 08/10] serial: max310x: allow driver to be built with SPI or I2C
From: Hugo Villeneuve
Date: Fri Apr 17 2026 - 10:55:09 EST
From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
If SPI is disabled, the max310x driver cannot be selected. Allow driver to
be selected if either I2C or SPI is set.
Signed-off-by: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
---
drivers/tty/serial/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 9aa61c93d7bc6d164b9c493f140477b793ca8afe..296fa20340bd59196f7d1394687edac10fc73adf 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -321,7 +321,7 @@ config SERIAL_MAX3100
config SERIAL_MAX310X
tristate "MAX310X support"
- depends on SPI_MASTER
+ depends on SPI_MASTER || I2C
select SERIAL_CORE
select REGMAP_SPI if SPI_MASTER
select REGMAP_I2C if I2C
--
2.47.3