Commit eee43699 authored by Abe Kohandel's avatar Abe Kohandel Committed by Mark Brown

spi: dw: Replace incorrect spi_get_chipselect with set

Commit 445164e8 ("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: 445164e8 ("spi: dw: Replace spi->chip_select references with function calls")
Signed-off-by: default avatarAbe Kohandel <abe.kohandel@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20230613162103.569812-1-abe.kohandel@intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c5c31fb7
......@@ -274,7 +274,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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment