staging: dgnc: introduce find_board_by_major()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 Sep 2016 00:47:20 +0000 (09:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:12:26 +0000 (13:12 +0200)
commit9f7a104c2be97902752f7d7a15e955b2de402356
tree2a7130773438c2264c186f3e8f51b786f0c70180
parent1cd7c06213eaeb6c045983ebed8be866938c42b5
staging: dgnc: introduce find_board_by_major()

It was used to get a board structure with dgnc_BoardsByMajor array.
But this driver already has the array for managing initialized board
as dgap_board[]. It can be used for searching the board structure
by major number.

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