summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-08 02:33:14 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-19 14:43:10 -0700
commita1ba4d41db3b028a7885d26bcff4eeb28e6b025f (patch)
tree22a92bbb17048112ae0b18d8b0d86060164910e3
parentc1d13bfdb9c75c2885d10332174a887349eb0b51 (diff)
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: sashiko-bot@kernel.org Assisted-by: LLM Reviewed-by: David Heidelberg <david@ixit.cz> Link: https://patch.msgid.link/asdjLHHNrrtjIKCb@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/s6sy761.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c
index 0f24a9b73063..1adf78abde9e 100644
--- a/drivers/input/touchscreen/s6sy761.c
+++ b/drivers/input/touchscreen/s6sy761.c
@@ -433,8 +433,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);