]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_atmio: fix build errors
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 12 Mar 2013 17:53:11 +0000 (10:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Mar 2013 18:46:08 +0000 (11:46 -0700)
commitca4d4aa6b79f143f4c8606c60bad005405623faa
treee017f110c4e98956f886356611c9a9541ba57a46
parentf4309c0f1463cdea69f958de169ed987fb4dfdb2
staging: comedi: ni_atmio: fix build errors

The following commits introduced a couple build errors in this driver
due to the removal of some macros in ni_stc.h.

commit: f5a1d92b "staging: comedi: ni_stc.h: remove n_ni_boards macro"
commit: 6293e357 "staging: comedi: ni_stc.h: remove boardtype macro"

The n_ni_boards macro is an open coded version of ARRAY_SIZE.

The boardtype macro is removed in favor of using the comedi_board()
helper and accessing the boardinfo with a pointer.

Fix both issues.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_atmio.c