staging: comedi: comedidev.h: make comedi_board() parameter const

The inline function `comedi_board(dev)` merely returns `dev->board_ptr`.
It does not modify any members of `*dev` so make its parameter a const
pointer.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ian Abbott 2012-11-02 19:18:00 +00:00 committed by Greg Kroah-Hartman
parent 46ca84c465
commit 4dba6c02cd

View File

@ -247,7 +247,7 @@ struct comedi_device {
void (*close) (struct comedi_device *dev);
};
static inline const void *comedi_board(struct comedi_device *dev)
static inline const void *comedi_board(const struct comedi_device *dev)
{
return dev->board_ptr;
}