From: Daniel Baluta Date: Tue, 23 Dec 2014 13:22:24 +0000 (+0200) Subject: iio: imu: kmx61: Save odr_bits for later use X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4e8439779ef613135049cea77f50cf58ccc44255;p=openwrt%2Fstaging%2Fblogic.git iio: imu: kmx61: Save odr_bits for later use Signed-off-by: Daniel Baluta Reviewed-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index 9b32f012ca0f..52c943d50bef 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -465,6 +465,8 @@ static int kmx61_set_odr(struct kmx61_data *data, int val, int val2, u8 device) if (ret < 0) return ret; + data->odr_bits = odr_bits; + if (device & KMX61_ACC) { ret = kmx61_set_wake_up_odr(data, val, val2); if (ret)