[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210905105518.56fde2d4@jic23-huawei>
Date: Sun, 5 Sep 2021 10:55:18 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: "Sa, Nuno" <Nuno.Sa@...log.com>
Cc: "Chindris, Mihail" <Mihail.Chindris@...log.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"Hennerich, Michael" <Michael.Hennerich@...log.com>,
"Bogdan, Dragos" <Dragos.Bogdan@...log.com>
Subject: Re: [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á
Powered by blists - more mailing lists