OSDN Git Service

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)
commit36c72a58d472b4032e09f165ea064a0251c9df07
tree076a2f22125d4ba1ce97332c82202c28000690a0
parent7b9c94bd13cc9dc9c0c4932ebacf756ae612d52a
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