From b4b0df406d83ef9e8942b34d158b1ecc889da135 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 3 Jan 2020 17:36:16 +0900 Subject: [PATCH] input: tizen_detent: Change event value of the detent device Until Tizen 5.0, for detent/bezel input device, its event value was in between -2 and 2, but value 1, meant starting movement to counter clockwise or clockwise, and value -1, meant moving back to original position, never used. Change event value of the detent/bezel device for Tizen 5.5 and later version. It changes detent/bezel input driver event interface, so user input framework for detent/bezel input should be also changed. Ref: https://review.tizen.org/gerrit/#/c/profile/wearable/platform/kernel/linux-4.9-exynos9110/+/220495/ Ref: https://review.tizen.org/gerrit/#/c/platform/upstream/enlightenment/+/220346/ Change-Id: I6142ba278611fae2f41472ca98fcfbd928ee9a93 Signed-off-by: Seung-Woo Kim --- drivers/input/misc/tizen_detent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/misc/tizen_detent.c b/drivers/input/misc/tizen_detent.c index ce5a8b1..f083cdf 100644 --- a/drivers/input/misc/tizen_detent.c +++ b/drivers/input/misc/tizen_detent.c @@ -43,10 +43,10 @@ extern struct class *sec_class; #define WAKELOCK_TIME HZ/10 enum direction_patten { - CounterClockwise = -2, - Detent_Return = -1, - Detent_Leave = 1, - Clockwise = 2, + CounterClockwise = -1, + Detent_Return = 0, + Detent_Leave = 0, + Clockwise = 1, Direction_MAX, }; -- 2.7.4