kernel
Revision | d5a8147dd131cf10b010e0e4d727c6b4a288adbb (tree) |
---|---|
Time | 2019-03-27 17:55:31 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
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>
@@ -145,7 +145,7 @@ static const struct dmi_system_id rotated_screen[] = { | ||
145 | 145 | {} |
146 | 146 | }; |
147 | 147 | |
148 | -static const struct dmi_system_id x_inverted[] = { | |
148 | +static const struct dmi_system_id y_inverted[] = { | |
149 | 149 | #if defined(CONFIG_DMI) && defined(CONFIG_X86) |
150 | 150 | { |
151 | 151 | .ident = "Microtech e-tab Pro", |
@@ -720,9 +720,9 @@ static int goodix_configure_dev(struct goodix_ts_data *ts) | ||
720 | 720 | ts->prop.invert_y = true; |
721 | 721 | dev_dbg(&ts->client->dev, |
722 | 722 | "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"); | |
726 | 726 | } |
727 | 727 | |
728 | 728 | error = input_mt_init_slots(ts->input_dev, ts->max_touch_num, |