]> 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)
commit103232ba7e60ed792910ef28ca26b2ff2adc3788
tree550a6b07fcd32889152264bc4628f5a620f80d4b
parentad331f4552c60afe792cb34f062793a7aaedc71b
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