forked from Minki/linux
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:
parent
46ca84c465
commit
4dba6c02cd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user