OSDN Git Service

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)
commitea4c39beace859139bc184a1aebdccdc12c04a2e
tree26793ec052bafb4045e3a304c99f8ebdb72bb0ba
parent90efa75f7ab0be5677f0cca155dbf0b39eacdd03
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