uart: tidy the uart_get_info API
authorAlan Cox <alan@linux.intel.com>
Mon, 29 Oct 2012 15:20:25 +0000 (15:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 21:05:31 +0000 (14:05 -0700)
commit9f1096943a56c35cc85a0729ec759fd8a25e552f
tree2fa71b3897b548c4409ec6f07ab1dcce60b707dc
parentbebe73e31d98845c8b63e624c25a5da2d819345a
uart: tidy the uart_get_info API

We pass both port and state because the original caller had both to hand.
With all the attribute callers this won't be true so do the conversion in
the function itself.

The current callers all do lock/query/unlock. This won't be true for future
set based cases but there are plenty of get ones that will exist so split
the code with a helper for the future cases.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c