mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
net: vertexcom: mse102x: 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.
Reviewed-by: Simon Horman <horms@kernel.org>
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/feacee68c00f6f976c82864ba2f10a3f0c1b99f2.1707324794.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
1cc711a72a
commit
7969b98b80
@ -664,7 +664,7 @@ static int mse102x_probe_spi(struct spi_device *spi)
|
||||
spi->bits_per_word = 8;
|
||||
spi->mode |= SPI_MODE_3;
|
||||
/* enforce minimum speed to ensure device functionality */
|
||||
spi->master->min_speed_hz = MIN_FREQ_HZ;
|
||||
spi->controller->min_speed_hz = MIN_FREQ_HZ;
|
||||
|
||||
if (!spi->max_speed_hz)
|
||||
spi->max_speed_hz = MAX_FREQ_HZ;
|
||||
|
Loading…
Reference in New Issue
Block a user