mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
spi: spidev: Follow renaming of SPI "master" to "controller"
In commit 8caab75fd2
("spi: Generalize SPI "master" to "controller"")
some functions and struct members were renamed. To not break all drivers
compatibility macros were provided.
To be able to remove these compatibility macros push the renaming into
this driver.
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/15ebfdf58a6590962bdd51b49b2e85a69b3bf443.1707324794.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8197b136bb
commit
d934cd6f0e
@ -802,7 +802,7 @@ static int spidev_probe(struct spi_device *spi)
|
||||
spidev->devt = MKDEV(SPIDEV_MAJOR, minor);
|
||||
dev = device_create(&spidev_class, &spi->dev, spidev->devt,
|
||||
spidev, "spidev%d.%d",
|
||||
spi->master->bus_num, spi_get_chipselect(spi, 0));
|
||||
spi->controller->bus_num, spi_get_chipselect(spi, 0));
|
||||
status = PTR_ERR_OR_ZERO(dev);
|
||||
} else {
|
||||
dev_dbg(&spi->dev, "no minor number available!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user