spi: amd: Refactor code to use less spi_master_get_devdata
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 10 Sep 2021 11:15:26 +0000 (12:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Sep 2021 01:00:29 +0000 (02:00 +0100)
commitca8e8a18272e7b57b62db5db8fcf1f5218b89a98
treea8ac2f1394bb83cbc1ac76873610db86c2e474fc
parentbecbca18ae8fc86f8c379be11692fe8e25748bf8
spi: amd: Refactor code to use less spi_master_get_devdata

Get master data in the start and then just use struct amd_spi
as it has the needed variable

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210910111529.12539-1-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c