[PATCH 08/18] serial: sc16is7xx: add driver name to struct uart_driver

From: Hugo Villeneuve
Date: Tue Dec 19 2023 - 12:20:04 EST


From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>

Make sure that the driver name is displayed instead of "unknown" when
displaying the driver infos:

Before:
cat /proc/tty/drivers | grep ttySC
unknown /dev/ttySC 243 0-7 serial

After:
cat /proc/tty/drivers | grep ttySC
sc16is7xx /dev/ttySC 243 0-7 serial

Signed-off-by: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
---
drivers/tty/serial/sc16is7xx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 97a97a4bd71a..3fb99b6929f3 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -350,6 +350,7 @@ static DECLARE_BITMAP(sc16is7xx_lines, SC16IS7XX_MAX_DEVS);

static struct uart_driver sc16is7xx_uart = {
.owner = THIS_MODULE,
+ .driver_name = SC16IS7XX_NAME,
.dev_name = "ttySC",
.nr = SC16IS7XX_MAX_DEVS,
};
--
2.39.2