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

Since each I2C/SPI probe function can modify sc16is7xx_regcfg at the same
time, change structure to be constant and do the required modifications on
a local copy.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240409154253.3043822-6-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c
drivers/tty/serial/sc16is7xx.h
drivers/tty/serial/sc16is7xx_i2c.c
drivers/tty/serial/sc16is7xx_spi.c