mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
OMAP/serial: Fix Mode13 vs Mode16 priority
Make Mode16 more preferred than Mode13, to match TRM baudrates table. Signed-off-by: Alexey Pelykh <alexey.pelykh@gmail.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4250b5d9a4
commit
18d8519d35
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud)
|
|||
if(baudAbsDiff16 < 0)
|
||||
baudAbsDiff16 = -baudAbsDiff16;
|
||||
|
||||
return (baudAbsDiff13 > baudAbsDiff16);
|
||||
return (baudAbsDiff13 >= baudAbsDiff16);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue