OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f20272
)
iio: imu: kmx61: Save odr_bits for later use
author
Daniel Baluta
<daniel.baluta@intel.com>
Tue, 23 Dec 2014 13:22:24 +0000
(15:22 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 5 Jan 2015 18:59:50 +0000
(18:59 +0000)
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>
drivers/iio/imu/kmx61.c
patch
|
blob
|
history
diff --git
a/drivers/iio/imu/kmx61.c
b/drivers/iio/imu/kmx61.c
index
9b32f01
..
52c943d
100644
(file)
--- 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)