diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -367,6 +367,8 @@ input_y = get_unaligned_le16(&data[4]); input_w = get_unaligned_le16(&data[6]); } + + input_y += 25; touchscreen_report_pos(ts->input_pen, &ts->prop, input_x, input_y, false); input_report_abs(ts->input_pen, ABS_PRESSURE, input_w); @@ -405,6 +407,8 @@ int input_x = get_unaligned_le16(&coor_data[1]); int input_y = get_unaligned_le16(&coor_data[3]); int input_w = get_unaligned_le16(&coor_data[5]); + + input_y += 25; input_mt_slot(ts->input_dev, id); input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true); @@ -420,6 +424,8 @@ int input_x = get_unaligned_le16(&coor_data[3]); int input_y = get_unaligned_le16(&coor_data[5]); int input_w = get_unaligned_le16(&coor_data[7]); + + input_y += 25; input_mt_slot(ts->input_dev, id); input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true);