]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e631d555c0ab4d40d97a83ee80d20f7cb889ece
tree0626d3ef5b0c80c5769504d947b330e5d49e48ea
parentfff64b49bbe47c0626af23b6a03d9abee5d5a180
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