[PATCH 1/5] Input: s6sy761 - apply the touchscreen inversion and swap properties

From: Nizat Mikayilli via B4 Relay

Date: Sun Nov 08 2026 - 03:36:09 EST


From: Nizat Mikayilli <nacht@xxxxxxxxxx>

The driver parses the touchscreen properties, which swaps the axis
ranges for touchscreen-swapped-x-y, but reports the raw coordinates, so
inverted and swapped axes do not work. Report them through
touchscreen_report_pos(). No in-tree device tree sets these properties
for this driver.

Fixes: 0145a7141e59 ("Input: add support for the Samsung S6SY761 touchscreen")
Signed-off-by: Nizat Mikayilli <nacht@xxxxxxxxxx>
---
drivers/input/touchscreen/s6sy761.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c
index 1afa38850f12..967fd222f0d6 100644
--- a/drivers/input/touchscreen/s6sy761.c
+++ b/drivers/input/touchscreen/s6sy761.c
@@ -153,8 +153,7 @@ static void s6sy761_report_coordinates(struct s6sy761_data *sdata,
input_mt_slot(sdata->input, tid);

input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, true);
- input_report_abs(sdata->input, ABS_MT_POSITION_X, x);
- input_report_abs(sdata->input, ABS_MT_POSITION_Y, y);
+ touchscreen_report_pos(sdata->input, &sdata->prop, x, y, true);
input_report_abs(sdata->input, ABS_MT_TOUCH_MAJOR, major);
input_report_abs(sdata->input, ABS_MT_TOUCH_MINOR, minor);
input_report_abs(sdata->input, ABS_MT_PRESSURE, z);

--
2.56.0