From: Cory Maccarrone Date: Tue, 2 Mar 2010 20:39:30 +0000 (-0800) Subject: Add support for 16-bit registers X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f338784777d9d22e44a6436cbb4bd54e2093b3c3;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