]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: rename config callback and add useful parameters
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Nov 2018 06:47:08 +0000 (07:47 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 12:00:03 +0000 (12:00 +0000)
commitb97b800088c4bede8aa6d4b3c098de959f173129
tree550a6b07fcd32889152264bc4628f5a620f80d4b
parent383db8f513588a0b66b2829e8d640e35b8f6985b
spi: imx: rename config callback and add useful parameters

The config callback is called once per transfer while some things can (and
should) be done on a per message manner. To have unambiguous naming in the
end include "transfer" in the callback's name and rename the
implementations accordingly. Also pass the driver struct and transfer
which allows further simplifications in the following patch.

There is no change in behavior intended here.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c