iio: magn: bmc150_magn: add oversampling ratio
authorIrina Tirdea <irina.tirdea@intel.com>
Wed, 29 Apr 2015 18:16:40 +0000 (21:16 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:44 +0000 (20:31 +0100)
commit5990dc9703679a6c9eef17ca042edb755541d6b1
tree4646b090ced9ad6e64cba68394301715c9b21fc9
parentfaaa44955dedc661f083636d816af90975a359ee
iio: magn: bmc150_magn: add oversampling ratio

Export the oversampling ratio so that the user can change the
number of repetions for x/y/z axis.

The sampling frequency is limited by the oversampling ratio.
The available sampling frequencies might change depending
on the values of oversampling_ratio.

The specification can be downloaded from:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/bmc150_magn.c