summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-08-29 10:38:00 +0200
committerJonathan Cameron <jic23@kernel.org>2014-08-30 12:35:11 +0200
commit823615e2de6880de3c8e681333147a09719f6fdb (patch)
treed24894a82010859caec934383a224dd85d3878f3 /drivers/iio
parentstaging: iio: light: isl29018: add support for isl29023 and isl29035 (diff)
downloadlinux-823615e2de6880de3c8e681333147a09719f6fdb.tar.xz
linux-823615e2de6880de3c8e681333147a09719f6fdb.zip
iio: accel: BMC150: fix scale value for 16G
According to documentation ([1] - page 27), the range for 16G is 7.81mg/LSB. Converted to SI, this is: 7.81 * 10^-3 * 9.80665 m/s^2 / LSB = 0.0765899365 m/s^2 / LSB [1] http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/bmc150-accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/bmc150-accel.c b/drivers/iio/accel/bmc150-accel.c
index 23ae33496214..ccb6cf83f5f5 100644
--- a/drivers/iio/accel/bmc150-accel.c
+++ b/drivers/iio/accel/bmc150-accel.c
@@ -173,7 +173,7 @@ static const struct {
} bmc150_accel_scale_table[] = { {9610, BMC150_ACCEL_DEF_RANGE_2G},
{19122, BMC150_ACCEL_DEF_RANGE_4G},
{38344, BMC150_ACCEL_DEF_RANGE_8G},
- {77057, BMC150_ACCEL_DEF_RANGE_16G} };
+ {76590, BMC150_ACCEL_DEF_RANGE_16G} };
static const struct {
int sleep_dur;