MLK-11467 input: mma8450: Add chip id check in probe
authorLuwei Zhou <b45643@freescale.com>
Tue, 3 Sep 2013 09:32:55 +0000 (17:32 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:18 +0000 (14:48 -0500)
commit2b60951c71e924268449807388f2c48117b81993
treed35095ef608d9efcf20d76b94f7053d46ba77b25
parent72cf3157d4fcbf1a69720d1c0b29555ee2dab63b
MLK-11467 input: mma8450: Add chip id check in probe

Add chip ID check in probe function. The mma8450 is
on the E-INK daughter board. When the daughter board
is not pluged, there would be polling error log
continuously. Add the check to avoid this.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit e9f2c4cf673dee1527925f30a9f3fd137d9799ad)
drivers/input/misc/mma8450.c