spi/imx: save the spi chip select in config struct, not the gpio to use
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 10 Sep 2010 07:42:29 +0000 (09:42 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 1 Oct 2010 07:32:13 +0000 (09:32 +0200)
commit3b2aa89eb381d2f445aa3c60d8f070a3f55efa63
tree933462cf29056bd56b12e9747e6e117b28174c25
parent1723e66b03c3d131d16f7646752c9782c66ea1ae
spi/imx: save the spi chip select in config struct, not the gpio to use

This prepares adding support for imx51's eCSPI.  This IP has seperate
control and config bits for all four supported chip selects, so the
config routine needs to know which chip select is being used even if
the chipselect is realized by a gpio.

Acked-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/spi/spi_imx.c