From: Hans de Goede Date: Wed, 20 May 2015 21:39:21 +0000 (-0700) Subject: Input: alps - only set fields that are actually present X-Git-Tag: omap-for-v4.2/fixes-rc1^2~130^2^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a839cd579b64e41779a24c691d0c88c6a16c63e0;p=pandora-kernel.git Input: alps - only set fields that are actually present Pinnacle / Rushmore packets contain either position info, or bitmap info, never both. So far we've in essence been storing garbage in the position / bitmap fields of the fields struct when decoding a bitmap / pos packet. We've been relying on the following sequence to get away with this: 1) Decode bitmap packet 2) Process bitmap packet 3) Decode position packet 4) Use position / button info This patch allows us to change this sequence, which will allow using the position info when processing the bitmap for more accurate results. Signed-off-by: Hans de Goede Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed