]> git.baikalelectronics.ru Git - kernel.git/commit
spi: amd: Drop superfluous member from struct amd_spi
authorLukas Wunner <lukas@wunner.de>
Mon, 4 May 2020 11:12:05 +0000 (13:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2020 16:18:49 +0000 (17:18 +0100)
commit058fca19bba8446ac2df15468bc33e11aff618e9
tree076a2f22125d4ba1ce97332c82202c28000690a0
parent276c108aea7495d189502baf89e7ba0f39032d0e
spi: amd: Drop superfluous member from struct amd_spi

The AMD SPI driver stores a pointer to the spi_master in struct amd_spi
so that it can get from the latter to the former in amd_spi_fifo_xfer().

It's simpler to just pass the pointer from the sole caller
amd_spi_master_transfer() and drop the pointer from struct amd_spi.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/a088b684ad292faf3bd036e51529e608e5c94638.1588590210.git.lukas@wunner.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c