Skip to content

Instantly share code, notes, and snippets.

@Alberto96
Last active April 4, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alberto96/accb3662fe6f6935c0084f370d2e3b09 to your computer and use it in GitHub Desktop.
Save Alberto96/accb3662fe6f6935c0084f370d2e3b09 to your computer and use it in GitHub Desktop.
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 4d113c9..51d8437 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -160,6 +160,8 @@ static void goodix_ts_report_touch(struct goodix_ts_data *ts, u8 *coor_data)
input_y = ts->abs_y_max - input_y;
}
+ input_x = ts->abs_x_max - input_x;
+
input_mt_slot(ts->input_dev, id);
input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true);
input_report_abs(ts->input_dev, ABS_MT_POSITION_X, input_x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment