From: Cory Maccarrone Date: Fri, 22 Jan 2010 02:31:46 +0000 (-0800) Subject: Add support for 16-bit registers X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13fecdf6cf956e21e9e7235297ea89a8d3b87bd2;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