spi: mpc52xx-psc: Switch to using core message queue
authorMark Brown <broonie@kernel.org>
Mon, 13 Jun 2022 12:19:46 +0000 (13:19 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:24:36 +0000 (13:24 +0100)
commit145cfc3840e5931a789a8e2e76af841ab4cad44b
treec0cbb2330f94e3cc58f6f053eb1be0137ed515c5
parente2185072a4a4786eb46be046cf20494c08dcc78f
spi: mpc52xx-psc: Switch to using core message queue

We deprecated open coding of the transfer queue back in 2017 so it's high
time we finished up converting drivers to use the standard message queue
code. The mpc52xx-psc driver is fairly straightforward so convert to use
transfer_one_message(), it looks like the driver would be a good fit for
transfer_one() with a little bit of updating but this smaller change seems
safer.

The driver seems like a good candidate for transfer_one() but the chip
select function is actually doing rather more than just updating the chip
select and both transfer_one() and transfer_one_message() are current APIs
so leave that refactoring for another day, ideally by someone with the
hardware.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220613121946.136193-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpc52xx-psc.c