For aesthetics, use comedi_buf_write_samples() to add the sample to the
async buffer.
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>
break;
}
- comedi_buf_put(s, val & s->maxdata);
+ val &= s->maxdata;
+ comedi_buf_write_samples(s, &val, 1);
s->async->cur_chan++;
if (s->async->cur_chan >= cmd->chanlist_len)
return ret;
}
- comedi_buf_put(s, val & s->maxdata);
+ val &= s->maxdata;
+ comedi_buf_write_samples(s, &val, 1);
s->async->cur_chan++;
if (s->async->cur_chan >= cmd->chanlist_len) {