projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef0a86e
)
Sensor: (1/1) fix issue - CapSensor PHx diff value is incorrect first time
author
litao2
<litao2@huaqin.com>
Wed, 16 Jan 2019 07:45:41 +0000
(15:45 +0800)
committer
xiest1
<xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:36 +0000
(17:30 +0800)
After calibration complete, user must wait 1.5 secondsat least for first
variational PHx diff value. Otherwise PHx diff is 0.
Bug:(CR)
Workaround:no
Change-Id: I88190d26db6f9559c5dcf49c8b2fe0515e8ef4ee
Signed-off-by: litao2 <litao2@huaqin.com>
drivers/input/misc/sx933x_sar.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/misc/sx933x_sar.c
b/drivers/input/misc/sx933x_sar.c
index 8daec35b34f4cbbcc05ab8360dffbd5fa53e8145..f87adffd6edd89ef5e8b10db1fb1125f12c105da 100755
(executable)
--- a/
drivers/input/misc/sx933x_sar.c
+++ b/
drivers/input/misc/sx933x_sar.c
@@
-530,6
+530,9
@@
static ssize_t sx933x_diff_data_show(struct device *dev, struct device_attribute
s32 diff;
u32 uData;
psx93XX_t this = dev_get_drvdata(dev);
+
+ msleep(1500);
+
if(this) {
for(csx =0; csx<5; csx++) {
sx933x_i2c_read_16bit(this, SX933X_DIFFPH0_REG + csx*4, &uData);