]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: Don't require platform data chipselect array
authorTrent Piepho <tpiepho@impinj.com>
Tue, 31 Oct 2017 19:49:06 +0000 (12:49 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 10 Nov 2017 21:28:11 +0000 (21:28 +0000)
commitffd4db9e10fdb431b559af052c17015682bbe2aa
tree62b7bc35640b3c34167fbb7e58534c7fe0a08543
parent4e21791e741c7c1b962c4a8327529f52310b9aac
spi: imx: Don't require platform data chipselect array

If the array is not present, assume all chip selects are native.  This
is the standard behavior for SPI masters configured via the device
tree and the behavior of this driver as well when it is configured via
device tree.

This reduces platform data vs DT differences and allows most of the
platform data based boards to remove their chip select arrays.

CC: Shawn Guo <shawnguo@kernel.org>
CC: Sascha Hauer <kernel@pengutronix.de>
CC: Fabio Estevam <fabio.estevam@nxp.com>
CC: Mark Brown <broonie@kernel.org>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c