staging: dgap: Simplify to set a concentrator type
authorDaeseok Youn <daeseok.youn@gmail.com>
Sat, 9 Aug 2014 05:38:41 +0000 (14:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:06 +0000 (12:23 -0700)
commitf6aa0164cd3b1c5192e87f5651ec382c3bc3abac
tree3003b2fbe78a4e896ad3aafe8eef5750f9080a06
parent77a4492fcc5696efd667cf698cb806ae846ea163
staging: dgap: Simplify to set a concentrator type

It is same manner with setting a board type.
For example of config file for concentrator,
    "conc ccon" or
    "conc epcon"

After allocating a type of "CNODE" then set a type of concentrator.
So remove cases in swith statement, just get a token from string
and set to "conc.type". And also it doesn't need to "conc.v_type".

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c
drivers/staging/dgap/dgap.h