Commit 4dba6c02 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

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: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46ca84c4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment