]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: comedi: comedi_buf: dont't export comedi_buf_memcpy_from()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 22 Oct 2014 21:36:48 +0000 (14:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:01:20 +0000 (16:01 +0800)
This function is only used internally. Remove the export.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_buf.c
drivers/staging/comedi/comedidev.h

index f7ff420ed61225350b60403c4b8bd435b9a1ae61..a87b8e66fde0824db9b5350281ad7a486448a586 100644 (file)
@@ -469,8 +469,9 @@ void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
 }
 EXPORT_SYMBOL_GPL(comedi_buf_memcpy_to);
 
-void comedi_buf_memcpy_from(struct comedi_subdevice *s, unsigned int offset,
-                           void *dest, unsigned int nbytes)
+static void comedi_buf_memcpy_from(struct comedi_subdevice *s,
+                                  unsigned int offset,
+                                  void *dest, unsigned int nbytes)
 {
        void *src;
        struct comedi_async *async = s->async;
@@ -495,7 +496,6 @@ void comedi_buf_memcpy_from(struct comedi_subdevice *s, unsigned int offset,
                read_ptr = 0;
        }
 }
-EXPORT_SYMBOL_GPL(comedi_buf_memcpy_from);
 
 /**
  * comedi_write_array_to_buffer - write data to comedi buffer
index df0209a53206fd02a30e0589aaf2fbadec2b5b23..ce48828bdae845787fc0ed0013d0f0c3e442632a 100644 (file)
@@ -445,8 +445,7 @@ int comedi_buf_put(struct comedi_subdevice *s, unsigned short x);
 
 void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
                          const void *source, unsigned int num_bytes);
-void comedi_buf_memcpy_from(struct comedi_subdevice *s, unsigned int offset,
-                           void *destination, unsigned int num_bytes);
+
 unsigned int comedi_write_array_to_buffer(struct comedi_subdevice *s,
                                          const void *data,
                                          unsigned int num_bytes);