]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgap: Simplify set a board type from configration file
authorDaeseok Youn <daeseok.youn@gmail.com>
Sat, 9 Aug 2014 05:38:14 +0000 (14:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:06 +0000 (12:23 -0700)
commitd8981df3eb634733528a9631af3b9383076fbf38
treed01a1376b6397f8ab7415d62705392aee640b30d
parent1d77ff95b3a79ab8d8ab47f545f70fd6836c9c06
staging: dgap: Simplify set a board type from configration file

Board types need to separate normal command like IO, MEM and so on.
And the board type will come after "board" string in config file normally.
(If it is not, dgap_gettok returns an error with zero)
After that, set a variable of a number which is matched with specific
a board number to "board.type". The dgap_gettok() returns that number so
just set to "board.type" and also "v_type" can be removed.

In case of boards of PCI type are set variables to zero. These can
be removed because "p" as cnode get memory from kzalloc so already
set to zero.

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