From: Daniel Kurtz Date: Mon, 19 May 2014 06:01:12 +0000 (-0700) Subject: Input: atmel_mxt_ts - define helper functions for size and instances X-Git-Tag: omap-for-v3.16/fixes-against-rc1~76^2^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e0c0c5b9c9d79acea00cab402b511a268a8bc8e;p=pandora-kernel.git Input: atmel_mxt_ts - define helper functions for size and instances These two object table entry fields are reported 1 less than their value. When used, however, we always want the actual size and instances. To keep the object size and instances 1-byte fields, and thus preserve the object-table struct's 6-byte packed alignment, add some convenient accessor functions that do the +1 every time these fields are accessed. Signed-off-by: Daniel Kurtz Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed