Skip to contentSkip to conversation

Input: s6sy761 - drop duplicate axis initialization in s6sy761_probe()

PATCH In review Dmitry Torokhov 2 participants 2 messages Oct 8 – Oct 10

Subsystems (2)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 Input: s6sy761 - drop duplicate axis initialization in s6sy761_probe()

ABS_MT_TOUCH_MAJOR and ABS_MT_TOUCH_MINOR are initialized twice with identical parameters in s6sy761_probe(). Remove the duplicate calls.

Reported-by [email protected]
Assisted-by LLM
---
 drivers/input/touchscreen/s6sy761.c | 2 --
 1 file changed, 2 deletions(-)
drivers/input/touchscreen/s6sy761.c +0 -2
index a770628d2b94..1afa38850f12 100644
@@ -446,8 +446,6 @@ static int s6sy761_probe(struct i2c_client *client)
 	input_set_abs_params(sdata->input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
 	input_set_abs_params(sdata->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
 	input_set_abs_params(sdata->input, ABS_MT_TOUCH_MINOR, 0, 255, 0, 0);
-	input_set_abs_params(sdata->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
-	input_set_abs_params(sdata->input, ABS_MT_TOUCH_MINOR, 0, 255, 0, 0);
 	input_set_abs_params(sdata->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
 
 	touchscreen_parse_properties(sdata->input, true, &sdata->prop);
Signature · 5 lines
2.56.0.385.gd3acb90ef8-goog


-- 
Dmitry