Skip to content

Commit

Permalink
staging: comedi: comedidev.h: make comedi_board() parameter const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Nov 6, 2012
1 parent 46ca84c commit 4dba6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4dba6c0

Please sign in to comment.