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

serial: sc16is7xx: use KBUILD_MODNAME

There is no need to redefine the driver name. Use KBUILD_MODNAME and get
rid of DRV_NAME altogether.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-12-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hugo Villeneuve and committed by
Greg Kroah-Hartman
be1d3aac 555d7b3d

+6 -7
+2 -2
drivers/tty/serial/sc16is7xx.c
··· 361 361 362 362 static struct uart_driver sc16is7xx_uart = { 363 363 .owner = THIS_MODULE, 364 - .driver_name = SC16IS7XX_NAME, 364 + .driver_name = KBUILD_MODNAME, 365 365 .dev_name = "ttySC", 366 366 .nr = SC16IS7XX_MAX_DEVS, 367 367 }; ··· 1808 1808 1809 1809 MODULE_LICENSE("GPL"); 1810 1810 MODULE_AUTHOR("Jon Ringle <jringle@gridpoint.com>"); 1811 - MODULE_DESCRIPTION("SC16IS7xx tty serial core driver"); 1811 + MODULE_DESCRIPTION(KBUILD_MODNAME " tty serial core driver");
-1
drivers/tty/serial/sc16is7xx.h
··· 8 8 #include <linux/regmap.h> 9 9 #include <linux/types.h> 10 10 11 - #define SC16IS7XX_NAME "sc16is7xx" 12 11 #define SC16IS7XX_MAX_PORTS 2 /* Maximum number of UART ports per IC. */ 13 12 14 13 struct device;
+2 -2
drivers/tty/serial/sc16is7xx_i2c.c
··· 52 52 53 53 static struct i2c_driver sc16is7xx_i2c_driver = { 54 54 .driver = { 55 - .name = SC16IS7XX_NAME, 55 + .name = KBUILD_MODNAME, 56 56 .of_match_table = sc16is7xx_dt_ids, 57 57 }, 58 58 .probe = sc16is7xx_i2c_probe, ··· 63 63 module_i2c_driver(sc16is7xx_i2c_driver); 64 64 65 65 MODULE_LICENSE("GPL"); 66 - MODULE_DESCRIPTION("SC16IS7xx I2C interface driver"); 66 + MODULE_DESCRIPTION(KBUILD_MODNAME " interface driver"); 67 67 MODULE_IMPORT_NS("SERIAL_NXP_SC16IS7XX");
+2 -2
drivers/tty/serial/sc16is7xx_spi.c
··· 75 75 76 76 static struct spi_driver sc16is7xx_spi_driver = { 77 77 .driver = { 78 - .name = SC16IS7XX_NAME, 78 + .name = KBUILD_MODNAME, 79 79 .of_match_table = sc16is7xx_dt_ids, 80 80 }, 81 81 .probe = sc16is7xx_spi_probe, ··· 86 86 module_spi_driver(sc16is7xx_spi_driver); 87 87 88 88 MODULE_LICENSE("GPL"); 89 - MODULE_DESCRIPTION("SC16IS7xx SPI interface driver"); 89 + MODULE_DESCRIPTION(KBUILD_MODNAME " interface driver"); 90 90 MODULE_IMPORT_NS("SERIAL_NXP_SC16IS7XX");