Commit 823615e2 authored by Laurentiu Palcu's avatar Laurentiu Palcu Committed by Jonathan Cameron

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.pdfSigned-off-by: default avatarLaurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 609acefa
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment