[PATCH v4 5/5] Input: hynitron-cst816x: set INPUT_PROP_DIRECT
From: Daniel Golle
Date: Mon Oct 05 2026 - 17:15:14 EST
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@xxxxxxxxxxxxxx>
---
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