OSDN Git Service

serial: core: Re-use struct uart_port {name} field
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 31 Mar 2017 18:35:18 +0000 (21:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 16:51:57 +0000 (18:51 +0200)
commitcade3580f79aeba0048d1dc4efd754786713c2c3
tree810b9339b62bbb136584e54b43b474b598098915
parent2e94d5ae5da1d2e798045a53b5e234a42b090908
serial: core: Re-use struct uart_port {name} field

Since we have port name stored in struct uart_port, we better to use
that one instead of open coding.

This will make it one place source for easier maintenance or
modifications.

While here, replace printk(KERN_INFO ) by pr_info(). It seems last printk()
call in serial_core.c.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c