Skip to content

Commit aa26e46

Browse files
bigguinessgregkh
authored andcommitted
staging: comedi: comedi_buf: don't export comedi_buf_memcpy_to()
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9e2093d commit aa26e46

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

drivers/staging/comedi/comedi_buf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ int comedi_buf_put(struct comedi_subdevice *s, unsigned short x)
442442
}
443443
EXPORT_SYMBOL_GPL(comedi_buf_put);
444444

445-
void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
446-
const void *data, unsigned int num_bytes)
445+
static void comedi_buf_memcpy_to(struct comedi_subdevice *s,
446+
unsigned int offset,
447+
const void *data, unsigned int num_bytes)
447448
{
448449
struct comedi_async *async = s->async;
449450
unsigned int write_ptr = async->buf_write_ptr + offset;
@@ -467,7 +468,6 @@ void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
467468
write_ptr = 0;
468469
}
469470
}
470-
EXPORT_SYMBOL_GPL(comedi_buf_memcpy_to);
471471

472472
static void comedi_buf_memcpy_from(struct comedi_subdevice *s,
473473
unsigned int offset,

drivers/staging/comedi/comedidev.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,6 @@ unsigned int comedi_buf_read_free(struct comedi_subdevice *s, unsigned int n);
443443

444444
int comedi_buf_put(struct comedi_subdevice *s, unsigned short x);
445445

446-
void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
447-
const void *source, unsigned int num_bytes);
448-
449446
unsigned int comedi_write_array_to_buffer(struct comedi_subdevice *s,
450447
const void *data,
451448
unsigned int num_bytes);

0 commit comments

Comments
 (0)