]> git.karo-electronics.de Git - linux-beck.git/commit
spi: fsl-espi: remove remaining usage of struct fsl_spi_platform_data
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 13 Nov 2016 13:36:39 +0000 (14:36 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Nov 2016 11:21:25 +0000 (11:21 +0000)
commit7454346b0cbc2a71311e1edcf1da5f1113c8a45c
tree7641efacd40861d070940dcbc12f3991d36d1d57
parent2808f778de3d591c3c84034688fd09e38ada27a6
spi: fsl-espi: remove remaining usage of struct fsl_spi_platform_data

Use master->num_chipselect directly instead of pdata->max_chipselect.
In this context let of_fsl_espi_get_chipselects return max_chipselect.

This change allows us to get rid of struct fsl_spi_platform_data
completely in the fsl-espi driver.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c