spi: spi-imx: replace struct spi_imx_data::bitbang by pointer to struct spi_controller
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 2 May 2022 17:54:55 +0000 (19:54 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2022 17:18:14 +0000 (18:18 +0100)
commit307c897db762d1e0feee9477276b08f6deca4a5b
tree4e58400ff17e6d8ce8e9461cc37c2bc8d467e1d5
parent63cd96b70f9366f67048fbc07294ce5823001ded
spi: spi-imx: replace struct spi_imx_data::bitbang by pointer to struct spi_controller

There's no need to embed the struct spi_bitbang into our private
data (struct spi_imx_data), the spi core is flexible enough, so that
we only need a pointer to the allocated struct spi_controller.

This is also a preparation patch to add PIO based polling support to
the driver.

Co-developed-by: David Jander <david@protonic.nl>
Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20220502175457.1977983-8-mkl@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/spi-imx.c