On 29/04/16 12:42, Daniel Baluta wrote: > 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@xxxxxxxxx> Applied to the fixes-togreg-post-rc1 branch of iio.git. Not pushed out as anything at all yet. Jonathan > --- > drivers/iio/imu/bmi160/bmi160_core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/imu/bmi160/bmi160_core.c b/drivers/iio/imu/bmi160/bmi160_core.c > index cd9b75e..b8a290e 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, > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html