iio: accel: bmc150: decouple buffer and triggers
authorVlad Dogaru <vlad.dogaru@intel.com>
Tue, 12 May 2015 14:03:24 +0000 (17:03 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 May 2015 09:57:27 +0000 (10:57 +0100)
commitc16bff4844ffa678ba0c9d077e9797506924ccdd
tree0626d3ef5b0c80c5769504d947b330e5d49e48ea
parent3f7f642b9bc46453e1435e8b67f1c4f7949be7ff
iio: accel: bmc150: decouple buffer and triggers

If the interrupt pins are not available, we should still be able to use
the buffer with an external trigger.  However, we won't be able to use
the hardware fifo since we have no means of signalling when the
watermark is reached.

I also added a comment to indicate that the timestamps in
bmc150_accel_data are only used for hardware fifo, since initially I was
confused about duplication with pf->timestamp.

Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Reviewed-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c