spi: Update swnode based SPI devices to use the fwnode name
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 16 Apr 2024 10:09:03 +0000 (11:09 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 16 Apr 2024 11:00:28 +0000 (20:00 +0900)
commited8921188f3568ba1659ff041f21e83565c74ec2
treeb0ee35b1d7108e5ad566f91f644006e4a0dcb596
parent8a101146bcf014060530d71eba8edc52eca257f7
spi: Update swnode based SPI devices to use the fwnode name

Update the name for software node based SPI devices to use the fwnode
name as the device name. This is helpful since swnode devices are
usually added within the kernel, and the kernel often then requires a
predictable name such that it can refer back to the device.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240416100904.3738093-4-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c