Input: st1232 - add support resolution reading
authorAndrej Valek <andrej.valek@siemens.com>
Thu, 12 Nov 2020 01:52:50 +0000 (17:52 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Nov 2020 01:54:12 +0000 (17:54 -0800)
commit3a54a215410b1650798dc09d051806b1f900142d
tree8ee79a2e6465209a82fff1d6dff23b9faab62912
parent7e90989141613e68ad8fceae63c1623954c96519
Input: st1232 - add support resolution reading

Hard-coding resolution for st1633 device was wrong. Some of LCDs like
YTS700TLBC-02-100C has assembled Sitronix st1633 touchcontroller too. But
the resolution is not 320x480 as was hard-coded.
Add new function which reads correct resolution directly from register.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Link: https://lore.kernel.org/r/20201103073949.12198-1-andrej.valek@siemens.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c