The device is identified by "NEXT" in board name, however there are different versions of it, "Next Advance" and "Next Pro", that have different DMI board names. Due to a production error a batch or two have their board names prefixed by "AYANEO", this makes it 6 different DMI board names. To save some space in final kernel image DMI_MATCH is used instead of DMI_EXACT_MATCH.
Unified · Split
| @@ -152,6 +152,12 @@ static const struct dmi_system_id orientation_data[] = { · 151 unmodified lines | |||
| 152 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"), | 152 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"), |
| 153 | }, | 153 | }, |
| 154 | .driver_data = (void *)&lcd800x1280_rightside_up, | 154 | .driver_data = (void *)&lcd800x1280_rightside_up, |
| 155 | }, { /* AYA NEO NEXT */ | ||
| 156 | .matches = { | ||
| 157 | DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"), | ||
| 158 | DMI_MATCH(DMI_BOARD_NAME, "NEXT"), | ||
| 159 | }, | ||
| 160 | .driver_data = (void *)&lcd800x1280_rightside_up, | ||
| 155 | }, { /* Chuwi HiBook (CWI514) */ | 161 | }, { /* Chuwi HiBook (CWI514) */ |
| 156 | .matches = { | 162 | .matches = { |
| 157 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), | 163 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), |