Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

kernel: Commit

kernel


Commit MetaInfo

Revisiond5a8147dd131cf10b010e0e4d727c6b4a288adbb (tree)
Time2019-03-27 17:55:31
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Input: goodix - invert y axis on Microtech e-tab Pro

Since commit 47aca0d the display is rotated 180 degrees.
So we have to invert both x and y axes.

The patch reverts commit 69d201a effectively.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>

Change Summary

Incremental Difference

--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -145,7 +145,7 @@ static const struct dmi_system_id rotated_screen[] = {
145145 {}
146146 };
147147
148-static const struct dmi_system_id x_inverted[] = {
148+static const struct dmi_system_id y_inverted[] = {
149149 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
150150 {
151151 .ident = "Microtech e-tab Pro",
@@ -720,9 +720,9 @@ static int goodix_configure_dev(struct goodix_ts_data *ts)
720720 ts->prop.invert_y = true;
721721 dev_dbg(&ts->client->dev,
722722 "Applying '180 degrees rotated screen' quirk\n");
723- } else if (dmi_check_system(x_inverted)) {
724- ts->prop.invert_x = true;
725- dev_err(&ts->client->dev, "Applying 'invert x axis' quirk\n");
723+ } else if (dmi_check_system(y_inverted)) {
724+ ts->prop.invert_y = true;
725+ dev_err(&ts->client->dev, "Applying 'invert y axis' quirk\n");
726726 }
727727
728728 error = input_mt_init_slots(ts->input_dev, ts->max_touch_num,
Show on old repository browser