[media] Input: atmel_mxt_ts - read touchscreen size
authorNick Dyer <nick@shmanahar.org>
Mon, 18 Jul 2016 21:10:33 +0000 (18:10 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Aug 2016 19:31:39 +0000 (16:31 -0300)
commit2786489f324e8384a814793d88c3a76d1973f422
tree14969e38fe9c74ff51e5bdf07ebb6628ac258d3c
parentecfdd7e2660e5208072d3afaed8c3e05a643b64f
[media] Input: atmel_mxt_ts - read touchscreen size

The touchscreen may have a margin where not all the matrix is used. Read
the parameters from T9 and T100 and take account of the difference.

Note: this does not read the XORIGIN/YORIGIN fields so it assumes that
the touchscreen starts at (0,0)

Signed-off-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c