From e33e43ed275cdb68aa151517f4108595d45f833f Mon Sep 17 00:00:00 2001 From: ChulHo Song Date: Wed, 23 Sep 2015 17:50:54 +0900 Subject: [PATCH] sensor: modify the proximity value appropriately Change-Id: I84e0a5690eca420e221da35c1c7aac463504c0a3 Signed-off-by: ChulHo Song --- drivers/maru/sensors/maru_proxi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/maru/sensors/maru_proxi.c b/drivers/maru/sensors/maru_proxi.c index aa14f82361cc..1553cae342e1 100644 --- 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); -- 2.34.1