diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-03-02 09:21:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 11:34:08 +0300 |
commit | 9af6f74d671ef3e5d3062511f229287e9f844b36 (patch) | |
tree | a08b0a08dd022a8af35dd473ffff589928946cf5 /drivers/tty/vcc.c | |
parent | 7330019160757744706cd559da935fae193058e5 (diff) | |
download | linux-9af6f74d671ef3e5d3062511f229287e9f844b36.tar.xz |
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>
Diffstat (limited to 'drivers/tty/vcc.c')
-rw-r--r-- | drivers/tty/vcc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c index 31b8a9a77375..a6cdbd170a61 100644 --- a/drivers/tty/vcc.c +++ b/drivers/tty/vcc.c @@ -52,8 +52,6 @@ struct vcc_port { #define VCC_CTL_BREAK -1 #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 vcc_port *vcc_table[VCC_MAX_PORTS]; @@ -1065,8 +1063,8 @@ static int vcc_tty_init(void) return PTR_ERR(vcc_tty_driver); } - vcc_tty_driver->driver_name = vcc_driver_name; - vcc_tty_driver->name = vcc_device_node; + vcc_tty_driver->driver_name = "vcc"; + vcc_tty_driver->name = "vcc"; vcc_tty_driver->minor_start = VCC_MINOR_START; vcc_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; |