Input: cyapa - do not try to enable proximity reporting on older devices
authorDudley Du <dudl@cypress.com>
Thu, 30 Jul 2015 18:26:39 +0000 (11:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 30 Jul 2015 18:34:00 +0000 (11:34 -0700)
commit0642ffd6a864629c12a4cd7528782ed5b68ac69c
tree915083f54c05e55ae88fe01edebbe9c5f2a5e165
parentddbb299db0e040aca8e26361ab778224eeacf9d3
Input: cyapa - do not try to enable proximity reporting on older devices

Avoid the driver generate warning message when the cyapa driver working
with the old Gen5 trackpad device which does not support the proximity
function.  Those old Gen5 trackpad device all have the platform version
less than 2.

Signed-off-by: Dudley Du <dudl@cypress.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen5.c