projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0876331
)
drivers: iio: imu: fix initial screen offset when switch app
author
lanshh
<lsh@rock-chips.com>
Mon, 26 Sep 2016 08:14:08 +0000
(16:14 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Mon, 26 Sep 2016 10:35:39 +0000
(18:35 +0800)
Change-Id: Ia65b4b5e03b712d0c69546d69ea7b4364f30b05b
Signed-off-by: lanshh <lsh@rock-chips.com>
drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c
b/drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c
index 7ddb67f5aa96c3fd588d53e4cb7cba5269b2d575..dead8352a1a2807c4a53814b088273c1024cef6d 100644
(file)
--- a/
drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c
+++ b/
drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c
@@
-1226,6
+1226,12
@@
static int inv_proc_event(char *raw_data, size_t raw_len, void *priv)
pr_info("in:%s\n", hex);
}
#endif
+ if (st->chip_config.is_asleep)
+ return 0;
+
+ if (raw_data[1] == 0)
+ return 0;
+
p = raw_data + 6;
st->hid_temperature = (p[1] << 8) | p[0];
p = raw_data + 8;