spi/imx: use soc name in spi device type naming scheme
authorShawn Guo <shawn.guo@linaro.org>
Sat, 9 Jul 2011 17:16:39 +0000 (01:16 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 14 Jul 2011 19:47:02 +0000 (13:47 -0600)
commit04ee585495a6d474d1ff9a821b52abf7db99cad3
treec32ed9c89d4d0939301561297abcaa380c3c9d33
parent2a64a90a2c64420e880b25dfeec6524ea78926fb
spi/imx: use soc name in spi device type naming scheme

Software defined version number is not stable enough to be used
in device type naming scheme.  The patch changes it to use implicit
soc name for spi device type definition.  In this way, we can easily
align the naming scheme with device tree binding, which comes later.

It removes fifosize from spi_imx_data and adds devtype there, so that
fifosize can be set in an inline function according to devtype.
Also, cpu_is_mx can be replaced by inline functions checking devtype.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Uwe Kleine-K├Ânig <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/mach-imx/clock-imx25.c
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/plat-mxc/devices/platform-spi_imx.c
drivers/spi/Kconfig
drivers/spi/spi-imx.c