touchscreen: fts_521: fix a misleading indentation warning
drivers/input/touchscreen/fts_521/fts.c:3138:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
input_report_abs(info->input_dev, ABS_MT_POSITION_X, x);
^
../drivers/input/touchscreen/fts_521/fts.c:3134:2: note: previous statement is here
if (touch_condition)
^
1 warning generated.
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
@@ -3131,10 +3131,9 @@ static void fts_enter_pointer_event_handler(struct fts_ts_info *info,
|
||||
|
||||
input_mt_report_slot_state(info->input_dev, tool, 1);
|
||||
input_report_key(info->input_dev, BTN_TOUCH, touch_condition);
|
||||
if (touch_condition)
|
||||
input_report_key(info->input_dev, BTN_TOOL_FINGER, 1);
|
||||
|
||||
/*input_report_abs(info->input_dev, ABS_MT_TRACKING_ID, touchId); */
|
||||
if (touch_condition)
|
||||
input_report_key(info->input_dev, BTN_TOOL_FINGER, 1);
|
||||
/*input_report_abs(info->input_dev, ABS_MT_TRACKING_ID, touchId); */
|
||||
input_report_abs(info->input_dev, ABS_MT_POSITION_X, x);
|
||||
input_report_abs(info->input_dev, ABS_MT_POSITION_Y, y);
|
||||
input_report_abs(info->input_dev, ABS_MT_TOUCH_MINOR, z);
|
||||
|
||||
Reference in New Issue
Block a user