Skip to content

Commit

Permalink
staging: comedi: comedi_fc: cfc_write_array_to_buffer() data is const
Browse files Browse the repository at this point in the history
The `data` pointer of `cfc_write_array_to_buffer()` ought to point to
`const` data.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 19, 2014
1 parent 5a78035 commit 5c520aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/comedi_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/* Writes an array of data points to comedi's buffer */
unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *s,
void *data, unsigned int num_bytes)
const void *data, unsigned int num_bytes)
{
struct comedi_async *async = s->async;
unsigned int retval;
Expand Down
5 changes: 3 additions & 2 deletions drivers/staging/comedi/drivers/comedi_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ static inline void cfc_inc_scan_progress(struct comedi_subdevice *s,
}

/* Writes an array of data points to comedi's buffer */
unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *,
void *data, unsigned int num_bytes);
unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *s,
const void *data,
unsigned int num_bytes);

static inline unsigned int cfc_write_to_buffer(struct comedi_subdevice *s,
unsigned short data)
Expand Down

0 comments on commit 5c520aa

Please sign in to comment.