From: Hugo Villeneuve Date: Fri, 17 Apr 2026 14:53:35 +0000 (-0400) Subject: serial: max310x: allow driver to be built with SPI or I2C X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20ffe4b3330a8;p=thirdparty%2Flinux.git serial: max310x: allow driver to be built with SPI or I2C 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 Link: https://patch.msgid.link/20260417-max310x-2-v1-8-b424e105ecac@dimonoff.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 3e519d001e02..f834e5d292fd 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