aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2014-12-23 08:22:24 -0500
committerJonathan Cameron <jic23@kernel.org>2015-01-05 13:59:50 -0500
commit4e8439779ef613135049cea77f50cf58ccc44255 (patch)
tree0a952bed1efeddbdefae924b1e618e5a7c82ef90 /drivers/iio/imu
parent1f202725b70c3d6dc736904a0d1b77a5faed6690 (diff)
iio: imu: kmx61: Save odr_bits for later use
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Reviewed-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r--drivers/iio/imu/kmx61.c2
1 files changed, 2 insertions, 0 deletions
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)
465 if (ret < 0) 465 if (ret < 0)
466 return ret; 466 return ret;
467 467
468 data->odr_bits = odr_bits;
469
468 if (device & KMX61_ACC) { 470 if (device & KMX61_ACC) {
469 ret = kmx61_set_wake_up_odr(data, val, val2); 471 ret = kmx61_set_wake_up_odr(data, val, val2);
470 if (ret) 472 if (ret)