linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about IIO buffer interface
@ 2016-09-08 16:07 Armando Visconti
  2016-09-10 14:53 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Armando Visconti @ 2016-09-08 16:07 UTC (permalink / raw)
  To: linux-iio; +Cc: Lorenzo BIANCONI, Denis CIOCCA

Hi,

I'm using kernel 3.10, but question is valid for any kernel
version.

I'm not able to clearly understand how the pre/post enable/disable
routines should be implemented in the IIO driver for my sensor.

In particular, it is not clear to me where I should be expected
to put the enable/disable of the sensor.

Looking at following comments inside include/linux/iio/iio.h, it
seems to me that maybe the sensor enable should be put inside
the postenable, and the sensor disabled inside the predisabled.

> * @preenable:        [DRIVER] function to run prior to marking buffer enabled
> * @postenable:       [DRIVER] function to run after marking buffer enabled
> * @predisable:       [DRIVER] function to run prior to marking buffer
> *                    disabled
> * @postdisable:      [DRIVER] function to run after marking buffer disabled

But it is not so evident looking at the IIO framework.
Can someone put some light on it?

Thx,
Armando

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-18 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08 16:07 question about IIO buffer interface Armando Visconti
2016-09-10 14:53 ` Jonathan Cameron
2016-09-16 15:03   ` Armando Visconti
2016-09-18 10:54     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).