]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Remove pointer to chip data from driver data
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 7 Sep 2016 14:04:07 +0000 (17:04 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 12 Sep 2016 19:01:27 +0000 (20:01 +0100)
commit0e58bca43edf270c578a50629747824698eeb7aa
tree58bf110c7cf0f071b12901a3b8c1ade00594712f
parentf049757e55bf34dc7327977a95c716e26daf67d7
spi: pxa2xx: Remove pointer to chip data from driver data

Transfer state machine in this driver does not need to set/unset pointer
to chip data between queueing and finalizing message as it is not
actually used as a state info itself but just pointer passing.

Since this per SPI device specific chip data is already carried in
ctldata use that and remove pointer to chip data from driver data.

While at it, group initialized variables before uninitialized variables
in pump_transfers().

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-dma.c
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h