static int lis3l02dq_data_rdy_ring_postenable(struct iio_dev *indio_dev) { return indio_dev->trig ? iio_trigger_attach_poll_func(indio_dev->trig, indio_dev->pollfunc) : 0; }
/** * max1363_ring_postenable() typical ring post enable * * Only not moved into the core for the hardware ring buffer cases * that are more sophisticated. **/ static int max1363_ring_postenable(struct iio_dev *indio_dev) { if (indio_dev->trig == NULL) return 0; return iio_trigger_attach_poll_func(indio_dev->trig, indio_dev->pollfunc); }