mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] serial: sc16is7xx: set driver name
@ 2024-05-31 10:19 Daniel Mack
  2024-05-31 10:27 ` Greg KH
  2024-06-01  9:26 ` kernel test robot
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Mack @ 2024-05-31 10:19 UTC (permalink / raw)
  To: gregkh, hvilleneuve; +Cc: linux-serial, linux-kernel, Daniel Mack

Set the drv_name field of the driver struct so that the tty core
registers a procfs entry for it. This is useful for debugging.

Signed-off-by: Daniel Mack <daniel@zonque.org>
---
 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 bf0065d1c8e9..308edbacda7b 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -351,6 +351,7 @@ static struct uart_driver sc16is7xx_uart = {
 	.owner		= THIS_MODULE,
 	.driver_name    = SC16IS7XX_NAME,
 	.dev_name	= "ttySC",
+	.driver_name	= SC16IS7XX_NAME,
 	.nr		= SC16IS7XX_MAX_DEVS,
 };
 
-- 
2.45.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-01  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-31 10:19 [PATCH] serial: sc16is7xx: set driver name Daniel Mack
2024-05-31 10:27 ` Greg KH
2024-05-31 15:12   ` Daniel Mack
2024-06-01  9:26 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®