OSDN Git Service

serial: liteuart: Remove a copy of UART id in private structure
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Jan 2023 19:26:04 +0000 (21:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:59:48 +0000 (10:59 +0100)
commit646b4cd9909aaf2bfb9e05897e9c3871a7385219
tree23007b0e730c8f8812363db292c74bed283cd186
parent297cb3f0b94bfedd781426814f1798a5c5658050
serial: liteuart: Remove a copy of UART id in private structure

The struct liteuart_port keeps tracking of UART ID which is also
saved in the struct uart_port as line member. Drop the former one
and use the latter everywhere.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Gabriel Somlo <gsomlo@gmail.com>
Link: https://lore.kernel.org/r/20230123192604.81452-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/liteuart.c