]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Remove redundant ->read() and ->write() in struct chip_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 22 Nov 2021 20:06:22 +0000 (22:06 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Nov 2021 12:09:10 +0000 (12:09 +0000)
commit3108c1b0b2cee4889c03d909ea7f0329ef138c95
treeb525b97977cf99f1b6f43553f0814feb7409015d
parente8708c33d5e043086abc570a9aa58f84bfbfb505
spi: pxa2xx: Remove redundant ->read() and ->write() in struct chip_data

Since the commit 80e270967afe ("spi: pxa2xx: Remove if statement
that is always true in pump_transfers()") the ->read() and ->write()
methods in the struct driver_data are reconfigured for each transfer.
Hence no need to keep the intermediate state in the struct chip_data.

The same applies to n_bytes member of the same data structure.
Get rid of unneeded storage for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211122200622.43305-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h