OSDN Git Service

iio: core: Introduce IIO_CHAN_INFO_OVERSAMPLING_RATIO
authorIrina Tirdea <irina.tirdea@intel.com>
Wed, 29 Apr 2015 18:16:39 +0000 (21:16 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:44 +0000 (20:31 +0100)
commitfaaa44955dedc661f083636d816af90975a359ee
tree5f44eee8b3ea069b581d5bf07613d596b5a0369f
parent42a95584f31c5f11a669f0db72f6b6e9ff00b8d9
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>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-core.c
include/linux/iio/iio.h