Skip to content

Commit d9ffada

Browse files
hvilleneuvedoogregkh
authored andcommitted
serial: sc16is7xx: add driver name to struct uart_driver
Make sure that the driver name is displayed instead of "unknown" when displaying the driver infos: Before: grep ttySC /proc/tty/drivers unknown /dev/ttySC 243 0-7 serial After: grep ttySC /proc/tty/drivers sc16is7xx /dev/ttySC 243 0-7 serial Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hugo Villeneuve <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7e2ead9 commit d9ffada

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/sc16is7xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ static DECLARE_BITMAP(sc16is7xx_lines, SC16IS7XX_MAX_DEVS);
351351

352352
static struct uart_driver sc16is7xx_uart = {
353353
.owner = THIS_MODULE,
354+
.driver_name = SC16IS7XX_NAME,
354355
.dev_name = "ttySC",
355356
.nr = SC16IS7XX_MAX_DEVS,
356357
};

0 commit comments

Comments
 (0)