mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 02:17:08 +07:00
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:
parent
d9a861d55e
commit
37859f8893
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user