[d-kernel] [PATCH 2/3] Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads"

nickel на altlinux.org nickel на altlinux.org
Чт Мар 24 10:51:24 MSK 2022


From: Nikolai Kostrigin <nickel at altlinux.org>

This commit breaks touchpad right button operation on ICL Si1516 laptop

Refer to ALT#42123

This reverts commit 6279c5263dedc6af67c194ec8e0f91bc2849cdf8.

Reported-by: Sergey Ivanov <zagagyka at basealt.ru>
Signed-off-by: Nikolai Kostrigin <nickel at altlinux.org>
---
 drivers/input/input.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index c3139bc2aa0d..ccaeb2426385 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -2285,12 +2285,6 @@ int input_register_device(struct input_dev *dev)
 	/* KEY_RESERVED is not supposed to be transmitted to userspace. */
 	__clear_bit(KEY_RESERVED, dev->keybit);
 
-	/* Buttonpads should not map BTN_RIGHT and/or BTN_MIDDLE. */
-	if (test_bit(INPUT_PROP_BUTTONPAD, dev->propbit)) {
-		__clear_bit(BTN_RIGHT, dev->keybit);
-		__clear_bit(BTN_MIDDLE, dev->keybit);
-	}
-
 	/* Make sure that bitmasks not mentioned in dev->evbit are clean. */
 	input_cleanse_bitmasks(dev);
 
-- 
2.33.0



Подробная информация о списке рассылки devel-kernel