summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sc16is7xx.c
diff options
context:
space:
mode:
authorHugo Villeneuve <hvilleneuve@dimonoff.com>2024-04-09 11:42:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-11 14:08:08 +0200
commit48d4a801be0ff64740832fcc71ac4632c12fd73b (patch)
tree8c75642f8da8b97ba4a3f69d7779f988a6acd718 /drivers/tty/serial/sc16is7xx.c
parentcf9c37530fdabc0c25a896ff56f4c9208dcb9c86 (diff)
downloadlinux-48d4a801be0ff64740832fcc71ac4632c12fd73b.tar.gz
linux-48d4a801be0ff64740832fcc71ac4632c12fd73b.tar.bz2
linux-48d4a801be0ff64740832fcc71ac4632c12fd73b.zip
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>
Diffstat (limited to 'drivers/tty/serial/sc16is7xx.c')
-rw-r--r--drivers/tty/serial/sc16is7xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 9c9673243c4c..03cf30e20b75 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -1695,7 +1695,7 @@ const struct of_device_id __maybe_unused sc16is7xx_dt_ids[] = {
EXPORT_SYMBOL_GPL(sc16is7xx_dt_ids);
MODULE_DEVICE_TABLE(of, sc16is7xx_dt_ids);
-struct regmap_config sc16is7xx_regcfg = {
+const struct regmap_config sc16is7xx_regcfg = {
.reg_bits = 5,
.pad_bits = 3,
.val_bits = 8,