]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
serial: max310x: allow driver to be built with SPI or I2C
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Fri, 17 Apr 2026 14:53:35 +0000 (10:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 15:20:18 +0000 (17:20 +0200)
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@dimonoff.com>
Link: https://patch.msgid.link/20260417-max310x-2-v1-8-b424e105ecac@dimonoff.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig

index 3e519d001e02a4ccdd02b3d31eead4bf831afc8d..f834e5d292fd76d8832994ed8abc926bd98bb53c 100644 (file)
@@ -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