Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: sc16is7xx: remove unused line structure member

Now that the driver has been converted to use one regmap per port, the line
structure member is no longer used, so remove it.

Fixes: 3837a0379533 ("serial: sc16is7xx: improve regmap debugfs by using one regmap per port")
Cc: <stable@vger.kernel.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20231211171353.2901416-4-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hugo Villeneuve and committed by
Greg Kroah-Hartman
41a308cb f6959c52

-2
-2
drivers/tty/serial/sc16is7xx.c
··· 322 322 323 323 struct sc16is7xx_one { 324 324 struct uart_port port; 325 - u8 line; 326 325 struct regmap *regmap; 327 326 struct kthread_work tx_work; 328 327 struct kthread_work reg_work; ··· 1551 1552 SC16IS7XX_IOCONTROL_SRESET_BIT); 1552 1553 1553 1554 for (i = 0; i < devtype->nr_uart; ++i) { 1554 - s->p[i].line = i; 1555 1555 /* Initialize port data */ 1556 1556 s->p[i].port.dev = dev; 1557 1557 s->p[i].port.irq = irq;