Input: ads7846 - make sure we do not change platform data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 28 Jun 2013 06:29:25 +0000 (23:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Jul 2013 03:40:47 +0000 (20:40 -0700)
commit57691a1e27a7d1995775b7e25e2ec0d7a415edc0
tree676c2aac68b0459803a8ceb626a8a23ab39f9d9f
parent67bf12ca50d524f9e225347fe63533562e2004de
Input: ads7846 - make sure we do not change platform data

Let's declare platform data a const pointer so that we don't accitentally
change it. Also fetch it with dev_get_platdata().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c