[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240402174353.256627-3-hugo@hugovil.com>
Date: Tue, 2 Apr 2024 13:43:50 -0400
From: Hugo Villeneuve <hugo@...ovil.com>
To: gregkh@...uxfoundation.org,
jirislaby@...nel.org
Cc: linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org,
hugo@...ovil.com,
andy.shevchenko@...il.com,
Hugo Villeneuve <hvilleneuve@...onoff.com>
Subject: [PATCH v3 2/5] serial: sc16is7xx: simplify and improve Kconfig help text
From: Hugo Villeneuve <hvilleneuve@...onoff.com>
Simplify and improve Kconfig help text for SC16IS7XX driver:
Especially get rid of the confusing:
"If required say y, and say n to..."
in each of the I2C and SPI portions.
Capitalize SPI keyword for consistency.
Display list of supported ICs each on a separate line (and aligned) to
facilitate locating a specific IC model.
Signed-off-by: Hugo Villeneuve <hvilleneuve@...onoff.com>
---
drivers/tty/serial/Kconfig | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index ffcf4882b25f9..48087e34ff527 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1028,9 +1028,18 @@ config SERIAL_SC16IS7XX
select SERIAL_CORE
depends on (SPI_MASTER && !I2C) || I2C
help
- This selects support for SC16IS7xx serial ports.
- Supported ICs are SC16IS740, SC16IS741, SC16IS750, SC16IS752,
- SC16IS760 and SC16IS762. Select supported buses using options below.
+ Core driver for NXP SC16IS7xx serial ports.
+ Supported ICs are:
+
+ SC16IS740
+ SC16IS741
+ SC16IS750
+ SC16IS752
+ SC16IS760
+ SC16IS762
+
+ You also must select at least one of I2C and SPI interface
+ drivers below.
config SERIAL_SC16IS7XX_I2C
bool "SC16IS7xx for I2C interface"
@@ -1041,9 +1050,7 @@ config SERIAL_SC16IS7XX_I2C
default y
help
Enable SC16IS7xx driver on I2C bus,
- If required say y, and say n to i2c if not required,
- Enabled by default to support oldconfig.
- You must select at least one bus for the driver to be built.
+ enabled by default to support oldconfig.
config SERIAL_SC16IS7XX_SPI
bool "SC16IS7xx for spi interface"
@@ -1052,10 +1059,7 @@ config SERIAL_SC16IS7XX_SPI
select SERIAL_SC16IS7XX_CORE if SERIAL_SC16IS7XX
select REGMAP_SPI if SPI_MASTER
help
- Enable SC16IS7xx driver on SPI bus,
- If required say y, and say n to spi if not required,
- This is additional support to existing driver.
- You must select at least one bus for the driver to be built.
+ Enable SC16IS7xx driver on SPI bus.
config SERIAL_TIMBERDALE
tristate "Support for timberdale UART"
--
2.39.2
Powered by blists - more mailing lists