Input: sur40 - fix bad endianness handling in sur40_poll
authorMartin Kepplinger <martink@posteo.de>
Tue, 4 Apr 2017 17:06:57 +0000 (10:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Apr 2017 15:52:36 +0000 (08:52 -0700)
commitdd04dc6dbd7f32b904c3b9916f5eb6be6fc2bb58
tree000e6f95fa7c13ca8ed3538758ce445d5b1dd1a2
parentd99caa472c0a28dc95dd9b98c30ee46f9755181f
Input: sur40 - fix bad endianness handling in sur40_poll

sparse says:

  sur40.c:372:40: warning: restricted __le32 degrades to integer

the header's data is __le32 so we need to convert it before comparing.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/sur40.c