diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2012-11-02 19:18:00 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-06 08:28:58 (GMT) |
commit | 4dba6c02cd2bd4714db4f0ccd3ebc3983ff0e039 (patch) | |
tree | 62e43b86632ce6dda4706b0a6067c04b18123179 /drivers/staging/comedi/comedidev.h | |
parent | 46ca84c4659f24776f7b901dd6054e3c6dfc115e (diff) | |
download | linux-fsl-qoriq-4dba6c02cd2bd4714db4f0ccd3ebc3983ff0e039.tar.xz |
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>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r-- | drivers/staging/comedi/comedidev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index 4ac2de4..5af3579 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -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; } |