Thread (7 messages) 7 messages, 2 authors, 5d ago

[PATCH v4 5/5] Input: hynitron-cst816x: set INPUT_PROP_DIRECT

flat view
COOLING5d

From: Daniel Golle <daniel@makrotopia.org>
Date: 2026-10-05 21:13:01
Also in: linux-devicetree, lkml
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

The sensor sits on the panel, so the coordinates it reports map
straight onto the display. Without either direct or pointer set,
event-codes.rst leaves userspace to deduce the device type from the
emitted event types, where ABS_X, ABS_Y and BTN_TOUCH read as a
touchpad and a touch becomes relative pointer motion.

Fixes: c87a819bec86 ("Input: add driver for Hynitron CST816x series")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/input/touchscreen/hynitron-cst816x.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/input/touchscreen/hynitron-cst816x.c b/drivers/input/touchscreen/hynitron-cst816x.c
index 7ef3e17a65f77..040ee3c2983ef 100644
--- a/drivers/input/touchscreen/hynitron-cst816x.c
+++ b/drivers/input/touchscreen/hynitron-cst816x.c
@@ -157,6 +157,7 @@ static int cst816x_register_input(struct cst816x_priv *priv)
 	input_set_abs_params(priv->input, ABS_X, 0, 240, 0, 0);
 	input_set_abs_params(priv->input, ABS_Y, 0, 240, 0, 0);
 	input_set_capability(priv->input, EV_KEY, BTN_TOUCH);
+	__set_bit(INPUT_PROP_DIRECT, priv->input->propbit);
 	touchscreen_parse_properties(priv->input, false, &priv->prop);
 
 	priv->input->keycode = priv->keycode;
-- 
2.56.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help