• Alan Cox's avatar
    uart: tidy the uart_get_info API · 9f109694
    Alan Cox authored
    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: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    9f109694
serial_core.c 64.7 KB