]> 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)
commit043da573956d09e1b0b4489e6bd2151a79e91931
tree62b7bc35640b3c34167fbb7e58534c7fe0a08543
parent522be5829e7c750ca4234753fc6673d1c48108f5
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