diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-04-27 21:10:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-30 01:37:49 (GMT) |
commit | 37859f8893c00fe4baa95f61ba560b9990f59484 (patch) | |
tree | c9cfb254f1bf12c6ae8bf2dc8e33e822edbbd7f6 /drivers/staging/comedi/comedidev.h | |
parent | d9a861d55e0cf60829956d7c6e18b7de0b02ab92 (diff) | |
download | linux-fsl-qoriq-37859f8893c00fe4baa95f61ba560b9990f59484.tar.xz |
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>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r-- | drivers/staging/comedi/comedidev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index 300fd84..02e4ae0 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -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; |