serial: sc16is7xx: split into core and I2C/SPI parts (core)
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Tue, 9 Apr 2024 15:42:51 +0000 (11:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 12:08:08 +0000 (14:08 +0200)
commitd49216438139bca0454e69b6c4ab8a01af2b72ed
tree1cef8303da75cb53271267237057c841922a231d
parent7f335744817092112be68efc06404466c135ae52
serial: sc16is7xx: split into core and I2C/SPI parts (core)

Split the common code from sc16is7xx driver and move the I2C and SPI bus
parts into interface-specific source files.

sc16is7xx becomes the core functions which can support multiple bus
interfaces like I2C and SPI.

No functional changes intended.

Also simplify and improve Kconfig entries.
  - Capitalize SPI keyword for consistency
  - Display list of supported ICs each on a separate line (and aligned) to
    facilitate locating a specific IC model
  - Add Manufacturer name at start of description string
  - Add UART keyword to description string

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20240409154253.3043822-4-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
drivers/tty/serial/sc16is7xx.c
drivers/tty/serial/sc16is7xx.h [new file with mode: 0644]
drivers/tty/serial/sc16is7xx_i2c.c [new file with mode: 0644]
drivers/tty/serial/sc16is7xx_spi.c [new file with mode: 0644]