From: Cory Maccarrone Date: Fri, 5 Feb 2010 04:05:43 +0000 (-0800) Subject: Add support for 16-bit registers X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afcea31a72ad13e7b692506f48fb268327a92964;p=pandora-kernel.git Add support for 16-bit registers The current i2c-omap driver is set up for 32-bit registers, which corresponds to most OMAP devices. However, OMAP730/850 based devices use a 16-bit register size. This change modifies the driver to perform a runtime CPU type check to determine the register sizes, and uses a bit shift of either 1 or 2 bits to compute the proper register sizes for all registers. Signed-off-by: Cory Maccarrone Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed