/* Typical predisable function which ensures that no trigger events can occur before we disable the ring buffer (and hence would have no idea what to do with them)  */
static int max1363_ring_predisable(struct iio_dev *indio_dev)
/* Typical predisable function which ensures that no trigger events can occur before we disable the ring buffer (and hence would have no idea what to do with them)  */
static int max1363_ring_predisable(struct iio_dev *indio_dev)
{
	if (indio_dev->trig)
		return iio_trigger_dettach_poll_func(indio_dev->trig,
						     indio_dev->pollfunc);
	else
		return 0;
}