From: Cory Maccarrone Date: Sun, 13 Dec 2009 01:54:02 +0000 (+0000) Subject: Add support for 16-bit registers X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc580d61f84565baec4a2fdf9b9d9e88e7bf373;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