Input: sur40 - suppress false uninitialized variable warning
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Nov 2013 19:03:57 +0000 (11:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Dec 2013 06:17:35 +0000 (22:17 -0800)
commitb884eb8c8502ca1fea497a02433c2b41de851f62
tree227f2d8067a0bfe78658543307664ea1c560b497
parent358f24704f2f016af7d504b357cdf32606091d07
Input: sur40 - suppress false uninitialized variable warning

We will never use packet_id before initializing it as we start with
"need_blobs == -1" and will set packet_id there.

Also use le32_to_cpu when fetching header->packet_id.

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