diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2016-04-29 14:42:34 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-04 10:50:36 +0100 |
commit | c25d3f37be016b301f446a5257645c4845daf53c (patch) | |
tree | d67e9b096d5b31a4e3a5b1c4c35baf2451235206 /drivers/iio/imu | |
parent | 5ec97ba0713d118a1cd03ccc7677a13769253bbd (diff) | |
download | linux-c25d3f37be016b301f446a5257645c4845daf53c.tar.bz2 |
iio: bmi160: Fix ODR setting
mask and val parameters of regmap_update_bits were reveresed.
Fixes: 77c4ad2d6a9 ("iio: imu: Add initial support for Bosch BMI160")
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r-- | drivers/iio/imu/bmi160/bmi160_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/imu/bmi160/bmi160_core.c b/drivers/iio/imu/bmi160/bmi160_core.c index cd9b75eeccd7..b8a290ec984e 100644 --- a/drivers/iio/imu/bmi160/bmi160_core.c +++ b/drivers/iio/imu/bmi160/bmi160_core.c @@ -364,8 +364,8 @@ int bmi160_set_odr(struct bmi160_data *data, enum bmi160_sensor_type t, return regmap_update_bits(data->regmap, bmi160_regs[t].config, - bmi160_odr_table[t].tbl[i].bits, - bmi160_regs[t].config_odr_mask); + bmi160_regs[t].config_odr_mask, + bmi160_odr_table[t].tbl[i].bits); } static int bmi160_get_odr(struct bmi160_data *data, enum bmi160_sensor_type t, |