spi: atmel: Configure GPIO per CS instead of by controller
authorGregory CLEMENT <gregory.clement@bootlin.com>
Thu, 17 Oct 2019 14:18:42 +0000 (16:18 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 18 Oct 2019 17:27:22 +0000 (18:27 +0100)
commit585d18f7ebd1dba7400dcc7189a5f7223b821374
treeaa07974dde26bddbdfbefc64e17fc537c8976037
parent7cbb16b2122c09f2ae393a1542fed628505b9da6
spi: atmel: Configure GPIO per CS instead of by controller

Instead of setting up the GPIO configuration for the whole controller,
do it at CS level. It will allow to mix internal CS and GPIO CS, which
is not possible with the current implementation.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20191017141846.7523-4-gregory.clement@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c