mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue