]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sccnxp: Using structure for each supported IC instead of switch in probe
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 31 Jul 2013 10:56:31 +0000 (14:56 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 01:08:02 +0000 (18:08 -0700)
commit3f64f85063cd36de24bab7be1337873a8e805d0a
tree26793ec052bafb4045e3a304c99f8ebdb72bb0ba
parentec2efc303189fafba14b311f3f5e150ce384e92e
serial: sccnxp: Using structure for each supported IC instead of switch in probe

This patch replaces switch in probe function to constant structure
for each supported IC. This makes code a bit smaller and cleaner and
helps adding DT support to the driver in the future.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c