mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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>
This commit is contained in:
parent
555d7b3de0
commit
be1d3aac8f
|
|
@ -361,7 +361,7 @@ static DEFINE_IDA(sc16is7xx_lines);
|
|||
|
||||
static struct uart_driver sc16is7xx_uart = {
|
||||
.owner = THIS_MODULE,
|
||||
.driver_name = SC16IS7XX_NAME,
|
||||
.driver_name = KBUILD_MODNAME,
|
||||
.dev_name = "ttySC",
|
||||
.nr = SC16IS7XX_MAX_DEVS,
|
||||
};
|
||||
|
|
@ -1808,4 +1808,4 @@ module_exit(sc16is7xx_exit);
|
|||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Jon Ringle <jringle@gridpoint.com>");
|
||||
MODULE_DESCRIPTION("SC16IS7xx tty serial core driver");
|
||||
MODULE_DESCRIPTION(KBUILD_MODNAME " tty serial core driver");
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
#include <linux/regmap.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#define SC16IS7XX_NAME "sc16is7xx"
|
||||
#define SC16IS7XX_MAX_PORTS 2 /* Maximum number of UART ports per IC. */
|
||||
|
||||
struct device;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ MODULE_DEVICE_TABLE(i2c, sc16is7xx_i2c_id_table);
|
|||
|
||||
static struct i2c_driver sc16is7xx_i2c_driver = {
|
||||
.driver = {
|
||||
.name = SC16IS7XX_NAME,
|
||||
.name = KBUILD_MODNAME,
|
||||
.of_match_table = sc16is7xx_dt_ids,
|
||||
},
|
||||
.probe = sc16is7xx_i2c_probe,
|
||||
|
|
@ -63,5 +63,5 @@ static struct i2c_driver sc16is7xx_i2c_driver = {
|
|||
module_i2c_driver(sc16is7xx_i2c_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("SC16IS7xx I2C interface driver");
|
||||
MODULE_DESCRIPTION(KBUILD_MODNAME " interface driver");
|
||||
MODULE_IMPORT_NS("SERIAL_NXP_SC16IS7XX");
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ MODULE_DEVICE_TABLE(spi, sc16is7xx_spi_id_table);
|
|||
|
||||
static struct spi_driver sc16is7xx_spi_driver = {
|
||||
.driver = {
|
||||
.name = SC16IS7XX_NAME,
|
||||
.name = KBUILD_MODNAME,
|
||||
.of_match_table = sc16is7xx_dt_ids,
|
||||
},
|
||||
.probe = sc16is7xx_spi_probe,
|
||||
|
|
@ -86,5 +86,5 @@ static struct spi_driver sc16is7xx_spi_driver = {
|
|||
module_spi_driver(sc16is7xx_spi_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("SC16IS7xx SPI interface driver");
|
||||
MODULE_DESCRIPTION(KBUILD_MODNAME " interface driver");
|
||||
MODULE_IMPORT_NS("SERIAL_NXP_SC16IS7XX");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user