spi: dw: Replace incorrect spi_get_chipselect with set
PATCH 1/1 spi: dw: Replace incorrect spi_get_chipselect with set
Commit 445164e8c136 ("spi: dw: Replace spi->chip_select references with function calls") replaced direct access to spi.chip_select with spi_*_chipselect calls but incorrectly replaced a set instance with a get instance, replace the incorrect instance.
--- drivers/spi/spi-dw-mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dw-mmio.c +1 -1
@@ -292,7 +292,7 @@ static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)*/ spi_set_chipselect (spi,0 ,0 );dw_spi_set_cs (spi, enable); -spi_get_chipselect (spi, cs); +spi_set_chipselect (spi,0 , cs); } static int dw_spi_elba_init(struct platform_device *pdev,
Signature · 1 line
2.40.1
Quoted 8 lines · Abe Kohandel
Commit
445164e8c136("spi: dw: Replacespi->chip_selectreferences with function calls") replaced direct access to spi.chip_select with spi_*_chipselect calls but incorrectly replaced a set instance with a get instance, replace the incorrect instance.Fixes 445164e8c136 ("spi: dw: Replace spi->chip_select references with function calls")Signed-off-by Abe Kohandel <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>
Indeed! Thanks for fixing this.
-Serge(y)
Quoted 20 lines
--- drivers/spi/spi-dw-mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-dw-mmio.c +1
-1@@ -292,7 +292,7 @@ static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)*/ spi_set_chipselect (spi,0 ,0 );dw_spi_set_cs (spi, enable); -spi_get_chipselect (spi, cs); +spi_set_chipselect (spi,0 , cs); } static int dw_spi_elba_init(struct platform_device *pdev,Signature · 1 line
2.40.1
Mark Brown
maintainerQuoted 6 lines · Abe Kohandel
Commit
445164e8c136("spi: dw: Replacespi->chip_selectreferences with function calls") replaced direct access to spi.chip_select with spi_*_chipselect calls but incorrectly replaced a set instance with a get instance, replace the incorrect instance.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: dw: Replace incorrect spi_get_chipselect with set
commit: eee43699217504ba69cadefc85c6992df555e33f
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark