summaryrefslogtreecommitdiffstats
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
authorIrina Tirdea2015-04-29 20:16:39 +0200
committerJonathan Cameron2015-05-10 21:31:44 +0200
commitfaaa44955dedc661f083636d816af90975a359ee (patch)
tree5f44eee8b3ea069b581d5bf07613d596b5a0369f /include/linux/iio/iio.h
parentiio: magn: bmc150_magn: Add devicetree binding documentation (diff)
downloadkernel-qcow2-linux-faaa44955dedc661f083636d816af90975a359ee.tar.gz
kernel-qcow2-linux-faaa44955dedc661f083636d816af90975a359ee.tar.xz
kernel-qcow2-linux-faaa44955dedc661f083636d816af90975a359ee.zip
iio: core: Introduce IIO_CHAN_INFO_OVERSAMPLING_RATIO
Some magnetometers can perform a number of repetitions in HW for each measurement to increase accuracy. One example is Bosch BMC150: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. Introduce an interface to set the oversampling ratio for these devices. Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/iio.h')
-rw-r--r--include/linux/iio/iio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index b1e46ae89aa7..058441da4984 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -44,6 +44,7 @@ enum iio_chan_info_enum {
IIO_CHAN_INFO_DEBOUNCE_COUNT,
IIO_CHAN_INFO_DEBOUNCE_TIME,
IIO_CHAN_INFO_CALIBEMISSIVITY,
+ IIO_CHAN_INFO_OVERSAMPLING_RATIO,
};
enum iio_shared_by {