iio: gyro: bmg160: use available_scan_masks
authorIrina Tirdea <irina.tirdea@intel.com>
Thu, 24 Mar 2016 09:29:28 +0000 (11:29 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 09:27:44 +0000 (10:27 +0100)
commitee8c5419e06e3a002995f5d1f57c9b5aead331e6
tree84a704d6bee1e040d9d2c3cc644a4ffcda107320
parent1715e0ccd3b8cd4c1ee76076e1e7452b113be193
iio: gyro: bmg160: 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: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160_core.c