diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-17 16:03:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-18 15:05:32 +0200 |
commit | ccd60b2030a04b91977d9fee9e0ec6469ac4cd1b (patch) | |
tree | 0250b5898f14a697fdb0e5b65215c6c2d8be97a1 /drivers/spi/spi-pxa2xx.c | |
parent | spi: pxa2xx: Switch to use SPI core GPIO (legacy) CS handling (diff) | |
download | linux-ccd60b2030a04b91977d9fee9e0ec6469ac4cd1b.tar.xz linux-ccd60b2030a04b91977d9fee9e0ec6469ac4cd1b.zip |
spi: pxa2xx: Drop duplicate chip_select in struct chip_data
The struct chip_data had been introduced in order to keep the parameters
that may be provided on stack during device allocation. There is no need
to duplicate parameters there, which are carried on by SPI device itself.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517140351.901-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 1a0bcd3bac1f..fb80f6013d54 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -432,7 +432,7 @@ static void cs_assert(struct spi_device *spi) spi_controller_get_devdata(spi->controller); if (drv_data->ssp_type == CE4100_SSP) { - pxa2xx_spi_write(drv_data, SSSR, chip->frm); + pxa2xx_spi_write(drv_data, SSSR, spi->chip_select); return; } @@ -1303,8 +1303,6 @@ static int setup(struct spi_device *spi) kfree(chip); return -EINVAL; } - - chip->frm = spi->chip_select; } chip->enable_dma = drv_data->controller_info->enable_dma; chip->timeout = TIMOUT_DFLT; |