summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/comedi_buf.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-10-22 21:36:47 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 08:01:20 (GMT)
commit04c4166a22717241c3d5fdf8740c7e4c9a0bdf25 (patch)
tree3e60926734de65a2c5d2b0aab90e7881577fcaf2 /drivers/staging/comedi/comedi_buf.c
parente463fbe419b70744c7126ec198c6d6e2cffa5c87 (diff)
downloadlinux-04c4166a22717241c3d5fdf8740c7e4c9a0bdf25.tar.xz
staging: comedi: comedi_buf: remove comedi_buf_get()
This function is no longer used. Remove it. 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>
Diffstat (limited to 'drivers/staging/comedi/comedi_buf.c')
-rw-r--r--drivers/staging/comedi/comedi_buf.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/comedi/comedi_buf.c b/drivers/staging/comedi/comedi_buf.c
index fb2e91a..f7ff420 100644
--- a/drivers/staging/comedi/comedi_buf.c
+++ b/drivers/staging/comedi/comedi_buf.c
@@ -442,20 +442,6 @@ int comedi_buf_put(struct comedi_subdevice *s, unsigned short x)
}
EXPORT_SYMBOL_GPL(comedi_buf_put);
-int comedi_buf_get(struct comedi_subdevice *s, unsigned short *x)
-{
- struct comedi_async *async = s->async;
- unsigned int n = comedi_buf_read_n_available(s);
-
- if (n < sizeof(short))
- return 0;
- comedi_buf_read_alloc(s, sizeof(short));
- *x = *(unsigned short *)(async->prealloc_buf + async->buf_read_ptr);
- comedi_buf_read_free(s, sizeof(short));
- return 1;
-}
-EXPORT_SYMBOL_GPL(comedi_buf_get);
-
void comedi_buf_memcpy_to(struct comedi_subdevice *s, unsigned int offset,
const void *data, unsigned int num_bytes)
{