Skip to content

Commit eee4369

Browse files
Abe Kohandelbroonie
authored andcommitted
spi: dw: Replace incorrect spi_get_chipselect with set
Commit 445164e ("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. Fixes: 445164e ("spi: dw: Replace spi->chip_select references with function calls") Signed-off-by: Abe Kohandel <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Serge Semin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c5c31fb commit eee4369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-dw-mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)
274274
*/
275275
spi_set_chipselect(spi, 0, 0);
276276
dw_spi_set_cs(spi, enable);
277-
spi_get_chipselect(spi, cs);
277+
spi_set_chipselect(spi, 0, cs);
278278
}
279279

280280
static int dw_spi_elba_init(struct platform_device *pdev,

0 commit comments

Comments
 (0)