Input: s6sy761 - drop duplicate axis initialization in s6sy761_probe()
Subsystems (2)
Dmitry Torokhov
maintainerPATCH 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.
--- drivers/input/touchscreen/s6sy761.c | 2 -- 1 file changed, 2 deletions(-)
drivers/input/touchscreen/s6sy761.c +0 -2
@@ -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
Quoted 6 lines · Dmitry Torokhov
ABS_MT_TOUCH_MAJORandABS_MT_TOUCH_MINORare initialized twice with identical parameters ins6sy761_probe(). Remove the duplicate calls.
with or without Fixes: tag,
Reviewed-by David Heidelberg <[email protected]>