]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Improve readability of sampling rate configuration
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Aug 2015 18:02:31 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:33:48 +0000 (17:33 +0100)
commitd11de19dc2c9e2954979dbe503c193b96157179d
tree045cf7588ba5ada9a9ca3eee5b2af751df83f335
parentc047a39ce77216562f2f100c31d24f20ab3b50e7
serial: sh-sci: Improve readability of sampling rate configuration

Reorder sampling_rate assignment for consistency in all cases of the
switch statement.
Avoid using the ternary conditional operator to make it more clear that
the value is overridden by platform data.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c