]> git.karo-electronics.de Git - linux-beck.git/commit
serial: atmel: trivial: clean the IP version decoding code
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 26 Jan 2016 10:26:14 +0000 (11:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:40:25 +0000 (22:40 -0800)
commit4b769371fef7e5ad2ec9d7a677bb7001a0c5b213
tree7479b8e720a495c4e8b13847d95fd870510001bf
parent0b41ce991052022c030fd868e03877700220b090
serial: atmel: trivial: clean the IP version decoding code

No functional change is associated with this patch.

A driver property depends on the Atmel serial IP revision. This property
is the way the rx timeout is handled: by an hardware or software timer.
So, change this property name and setup code so that it's easier to understand
and more future proof as the distinction of USART vs. UART is blurrier on newer
SoCs.
Variable names and debug comments are also adapted to make this code more obvious.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c