lkml.org 
[lkml]   [2021]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 1/6] iio: Add output buffer support


> > > + if (test_bit(IIO_BUSY_BIT_POS, &rb->flags))
> > > + return -EBUSY;
> > > +
> > > + return iio_buffer_write(filp, buf, n, f_ps);
> > > +}
> > > +
> > > __poll_t iio_buffer_poll_wrapper(struct file *filp,
> > > struct poll_table_struct *wait)
> > > {
> > > @@ -231,6 +317,15 @@ void iio_buffer_wakeup_poll(struct iio_dev
> > *indio_dev)
> > > }
> > > }
> > >
> > > +int iio_buffer_remove_sample(struct iio_buffer *buffer, u8 *data)
> >
> > sample or scan? Sample would be a single value for a single channel,
> > scan would be updates for all channels that are enabled.
>
> Maybe iio_pop_from_buffer()? To be consistent with iio_push_to_buffer()..

Works for me.

J
>
> - Nuno Sá

\
 
 \ /
  Last update: 2021-09-05 11:53    [W:0.811 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site