diff options
author | H Hartley Sweeten | 2014-10-23 00:37:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-10-29 09:03:15 +0100 |
commit | 0ce64e65177e9ddf22e375f0ccbcbfb59cfd6841 (patch) | |
tree | 2bfd4e904d5b7b0a4d84881dd116e7265bb109ca /drivers/staging/comedi/comedi_buf.c | |
parent | staging: comedi: pcmuio: use comedi_buf_write_samples() (diff) | |
download | kernel-qcow2-linux-0ce64e65177e9ddf22e375f0ccbcbfb59cfd6841.tar.gz kernel-qcow2-linux-0ce64e65177e9ddf22e375f0ccbcbfb59cfd6841.tar.xz kernel-qcow2-linux-0ce64e65177e9ddf22e375f0ccbcbfb59cfd6841.zip |
staging: comedi: comedi_buf: remove comedi_buf_put()
All comedi drivers now use comedi_buf_write_samples() to add the samples to
the async buffer. Remove this unused function.
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.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/comedi/comedi_buf.c b/drivers/staging/comedi/comedi_buf.c index a41a414bef74..f4b75d177d7f 100644 --- a/drivers/staging/comedi/comedi_buf.c +++ b/drivers/staging/comedi/comedi_buf.c @@ -427,21 +427,6 @@ unsigned int comedi_buf_read_free(struct comedi_subdevice *s, } EXPORT_SYMBOL_GPL(comedi_buf_read_free); -int comedi_buf_put(struct comedi_subdevice *s, unsigned short x) -{ - struct comedi_async *async = s->async; - unsigned int n = __comedi_buf_write_alloc(s, sizeof(short), 1); - - if (n < sizeof(short)) { - async->events |= COMEDI_CB_ERROR; - return 0; - } - *(unsigned short *)(async->prealloc_buf + async->buf_write_ptr) = x; - comedi_buf_write_free(s, sizeof(short)); - return 1; -} -EXPORT_SYMBOL_GPL(comedi_buf_put); - static void comedi_buf_memcpy_to(struct comedi_subdevice *s, const void *data, unsigned int num_bytes) { |