diff options
author | Vlad Dogaru <vlad.dogaru@intel.com> | 2015-04-03 15:03:02 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-09 16:20:02 +0300 |
commit | a25691c1f9674090fb66586cf4c5d60d3efdf339 (patch) | |
tree | 0502626ff1553feff17d869f84c14fa063208872 /drivers/iio/industrialio-core.c | |
parent | 53375103eae8dd6b717b170c69b72ac50fa01985 (diff) | |
download | linux-a25691c1f9674090fb66586cf4c5d60d3efdf339.tar.xz |
iio: accel: kxcjk1013: allow using an external trigger
In its present state, the driver mandates that its buffer only be
triggered by one of the device's own triggers (data ready or any
motion). This is not always desirable, for example because the
interrupt pins may not be wired in.
Patch the driver to be able to accept using an external trigger, such as
one based on hrtimer. When using such a trigger, we need to ensure that
the device is powered on when the buffer is started. We do that by
setting setup_ops for the buffer.
Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
0 files changed, 0 insertions, 0 deletions