staging: comedi: introduce 'comedi_board' helper function

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>
This commit is contained in:
H Hartley Sweeten 2012-04-27 14:10:15 -07:00 committed by Greg Kroah-Hartman
parent d9a861d55e
commit 37859f8893

View File

@ -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;