[PATCH 0/7] serial: sc16is7xx and max310x: regmap fixes and improvements
From: Hugo Villeneuve
Date: Thu Nov 30 2023 - 14:11:01 EST
From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
Hello,
this patch series brings fixes and improvements related to regmap access
for sc16is7xx and max310x drivers.
They are related to commit 3837a0379533 ("serial: sc16is7xx: improve regmap debugfs by using one regmap per port").
Patches 1 and 2 address some comments formulated during review of the
source patch listed above.
Patch 3 removes a structure member made obsolete.
Patches 4 and 5 are improvements for code readability.
Patches 6 and 7 port improvements from patches 4 and 5 of the sc16is7xx
driver over to the max310x driver.
I have tested the changes on a custom board with two SC16IS752 DUART over
a SPI interface using a Variscite IMX8MN NANO SOM. The four UARTs are
configured in RS-485 mode.
Thank you.
Hugo Villeneuve (7):
serial: sc16is7xx: fix snprintf format specifier in
sc16is7xx_regmap_name()
serial: sc16is7xx: remove global regmap from struct sc16is7xx_port
serial: sc16is7xx: remove unused line structure member
serial: sc16is7xx: add macro for max number of UART ports
serial: sc16is7xx: improve sc16is7xx_regmap_name() buffer size
computation
serial: max310x: add macro for max number of ports
serial: max310x: use separate regmap name for each port
drivers/tty/serial/max310x.c | 19 +++++++++++++++++--
drivers/tty/serial/sc16is7xx.c | 32 ++++++++++++++++++--------------
2 files changed, 35 insertions(+), 16 deletions(-)
base-commit: d804987153e7bedf503f8e4ba649afe52cfd7f6d
--
2.39.2