]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Compute ttyS index from port minor
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 24 Feb 2015 19:25:01 +0000 (14:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 15:14:27 +0000 (16:14 +0100)
commit90a8bdbc534ecece07c50b5c087d7be5f9ee2be4
tree719352fd2d7ba95846d280d5324bef4e3f880d20
parent0cd526175cbd0fef330cdabda1bf3170c6ad21f4
serial: 8250: Compute ttyS index from port minor

Prepare for 8250 split; calculate the ttyS index directly from
the port minor which avoids the global serial8250_reg reference
from base port operations.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c