Skip to content

Commit

Permalink
staging: comedi: ni_stc.h: remove boardtype macro
Browse files Browse the repository at this point in the history
This macro relies on a local variable having a specific name and
returns an object that variable points to. This object is the
boardinfo used by the driver.

The comedi core provides the comedi_board() helper to return a
const pointer to the boardinfo. Remove the 'boardtype' macro and
fix all the users of the 'boardtype' macro to use the comedi_board()
helper to get the const boardinfo pointer.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent a25a701 commit 6293e35
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 151 deletions.
Loading

0 comments on commit 6293e35

Please sign in to comment.