]> git.karo-electronics.de Git - karo-tx-linux.git/commit
I2C: OMAP2+: use platform_data ip revision to select register map
authorAndy Green <andy@warmcat.com>
Mon, 30 May 2011 14:43:06 +0000 (07:43 -0700)
committerBen Dooks <ben-linux@fluff.org>
Wed, 14 Sep 2011 21:19:10 +0000 (22:19 +0100)
commit1e9ec94dbca7d5f638f08c74f74e4ed251f2acf1
tree8109720b33c23920ce7a4830c2672d87676ee3d6
parent9d430ff68eaaba9903b9c6f75e0bdc73e35d4cb7
I2C: OMAP2+: use platform_data ip revision to select register map

Change the register map names to reflect the IP revision they
are representing, and use the platform_data IP revision index
to select between them at init time.

Eliminates 1 of 17 cpu_...() calls in the driver.

Cc: patches@linaro.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/i2c/busses/i2c-omap.c