OSDN Git Service

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)
commita666f2619a97ab9264d3b06055a336b3ee75c108
tree7b8dc6f8f4f7f14d3272e2bfbaf32cb3e709c1a2
parent734882a8bf984c2ac8a57d8ac3ee53230bd0bed8
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