projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a6e20
)
sensor: modify the proximity value appropriately
author
ChulHo Song
<ch81.song@samsung.com>
Wed, 23 Sep 2015 08:50:54 +0000
(17:50 +0900)
committer
ChulHo Song
<ch81.song@samsung.com>
Tue, 12 Jan 2016 09:41:50 +0000
(18:41 +0900)
Change-Id: I84e0a5690eca420e221da35c1c7aac463504c0a3
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
(cherry picked from commit
7aa00ee546292b2ee02d90493d8226c2a358f4f3
)
drivers/maru/sensors/maru_proxi.c
patch
|
blob
|
history
diff --git
a/drivers/maru/sensors/maru_proxi.c
b/drivers/maru/sensors/maru_proxi.c
index aa14f82361cc4ae2631a471a5334c3cced2149fc..1553cae342e14fcb1d92a6fb3f226ff0f63a2e6d 100644
(file)
--- a/
drivers/maru/sensors/maru_proxi.c
+++ b/
drivers/maru/sensors/maru_proxi.c
@@
-71,10
+71,8
@@
static void maru_proxi_input_work_func(struct work_struct *work) {
mutex_unlock(&data->vs->vqlock);
if (!ret) {
sscanf(sensor_data, "%d", &proxi);
- if (
!
proxi)
+ if (proxi)
proxi = 1;
- else
- proxi = 0;
LOG(1, "proxi_set %d", proxi);