mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
tty: vcc, use name strings directly
Do not define global variables for driver/device names, use the strings directly. Cc: "David S. Miller" <davem@davemloft.net> Cc: sparclinux@vger.kernel.org Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210302062214.29627-27-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7330019160
commit
9af6f74d67
1 changed files with 2 additions and 4 deletions
|
@ -52,8 +52,6 @@ struct vcc_port {
|
||||||
#define VCC_CTL_BREAK -1
|
#define VCC_CTL_BREAK -1
|
||||||
#define VCC_CTL_HUP -2
|
#define VCC_CTL_HUP -2
|
||||||
|
|
||||||
static const char vcc_driver_name[] = "vcc";
|
|
||||||
static const char vcc_device_node[] = "vcc";
|
|
||||||
static struct tty_driver *vcc_tty_driver;
|
static struct tty_driver *vcc_tty_driver;
|
||||||
|
|
||||||
static struct vcc_port *vcc_table[VCC_MAX_PORTS];
|
static struct vcc_port *vcc_table[VCC_MAX_PORTS];
|
||||||
|
@ -1065,8 +1063,8 @@ static int vcc_tty_init(void)
|
||||||
return PTR_ERR(vcc_tty_driver);
|
return PTR_ERR(vcc_tty_driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
vcc_tty_driver->driver_name = vcc_driver_name;
|
vcc_tty_driver->driver_name = "vcc";
|
||||||
vcc_tty_driver->name = vcc_device_node;
|
vcc_tty_driver->name = "vcc";
|
||||||
|
|
||||||
vcc_tty_driver->minor_start = VCC_MINOR_START;
|
vcc_tty_driver->minor_start = VCC_MINOR_START;
|
||||||
vcc_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM;
|
vcc_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM;
|
||||||
|
|
Loading…
Reference in a new issue