Skip to content

Commit

Permalink
staging: comedi: introduce 'comedi_board' helper function
Browse files Browse the repository at this point in the history
This helper function is used to fetch the comedi_device board_ptr
which is used during the attach to pass board specific information
to the comedi drivers.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent d9a861d commit 37859f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ struct comedi_device {
void (*close) (struct comedi_device *dev);
};

static inline const void *comedi_board(struct comedi_device *dev)
{
return dev->board_ptr;
}

struct comedi_device_file_info {
struct comedi_device *device;
struct comedi_subdevice *read_subdevice;
Expand Down

0 comments on commit 37859f8

Please sign in to comment.