[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231219171903.3530985-9-hugo@hugovil.com>
Date: Tue, 19 Dec 2023 12:18:52 -0500
From: Hugo Villeneuve <hugo@...ovil.com>
To: gregkh@...uxfoundation.org,
jirislaby@...nel.org,
jringle@...dpoint.com,
kubakici@...pl,
phil@...pberrypi.org,
bo.svangard@...eddedart.se
Cc: linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org,
hugo@...ovil.com,
Hugo Villeneuve <hvilleneuve@...onoff.com>
Subject: [PATCH 08/18] serial: sc16is7xx: add driver name to struct uart_driver
From: Hugo Villeneuve <hvilleneuve@...onoff.com>
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@...onoff.com>
---
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
Powered by blists - more mailing lists