Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c520aaf authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman
Browse files

staging: comedi: comedi_fc: cfc_write_array_to_buffer() data is const



The `data` pointer of `cfc_write_array_to_buffer()` ought to point to
`const` data.

Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5a780359
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+3 −2
Original line number Diff line number Diff line
@@ -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)