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 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html