iio: accel: kxcjk-1013: use available_scan_masks
authorAdriana Reus <adriana.reus@intel.com>
Thu, 24 Mar 2016 09:29:30 +0000 (11:29 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 09:27:45 +0000 (10:27 +0100)
commit09cf1b321ad353eeaeddcfd33771b34ce2a61640
treeca9f91671483f6082cfb49ac3d6006e7042ab967
parent7e3d1eb123d804d2b1088782f458aed5eb36c684
iio: accel: kxcjk-1013: use available_scan_masks

Use available_scan_masks to allow the iio core to select
the data to send to userspace depending on which axes are
enabled, instead of doing this in the driver's interrupt
handler.

Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c