input: tizen_detent: Change event value of the detent device accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200324.134448 accepted/tizen/5.5/unified/wearable/hotfix/20201027.092005 submit/tizen_5.5/20200323.012542 submit/tizen_5.5_wearable_hotfix/20201026.1843010 submit/tizen_5.5_wearable_hotfix/20201027.114701
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 3 Jan 2020 08:36:16 +0000 (17:36 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 23 Mar 2020 01:14:16 +0000 (10:14 +0900)
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 <sw0312.kim@samsung.com>
drivers/input/misc/tizen_detent.c

index ce5a8b1bb571d86ad07f007f228dbfdf90228093..f083cdf7f0d69acc7bfbe48e38c6aacaa3f314d0 100644 (file)
@@ -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,
 };