mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 22:07:35 -04:00
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 <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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
877c2556ad
commit
20ffe4b333
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user