]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bitbang: Don't call chipselect() in spi_bitbang_setup()
authorAlban Bedel <albeu@free.fr>
Wed, 16 Jan 2019 18:55:44 +0000 (19:55 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 17 Jan 2019 12:34:14 +0000 (12:34 +0000)
commit90a889d6ed5a8c6e8e06687844d0d14eb9004941
tree7b8dc6f8f4f7f14d3272e2bfbaf32cb3e709c1a2
parent0ee522c803b87982ee8cbcc44da607b7c99a30d3
spi: bitbang: Don't call chipselect() in spi_bitbang_setup()

spi_setup() already call spi_set_cs() right after calling the
controller setup method, so there is no need for the bitbang driver to
do that. Because of this the chipselect() callback was confusingly
still called when CS is GPIO based.

Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bitbang.c