]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mpc52xx: Avoid using get_tbl()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 9 Feb 2021 10:26:21 +0000 (10:26 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:13 +0000 (23:35 +1100)
commite10656114d32c659768e7ca8aebaaa6ac6e959ab
tree90328aff7cf0be4715673736ee3e78945c292f60
parent5b90b9661a3396e00f6e8bcbb617a0787fb683d0
spi: mpc52xx: Avoid using get_tbl()

get_tbl() is confusing as it returns the content TBL register
on PPC32 but the concatenation of TBL and TBU on PPC64.

Use mftb() instead.

This will allow the removal of get_tbl() in a following patch.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/99bf008e2970de7f8ed3225cda69a6d06ae1a644.1612866360.git.christophe.leroy@csgroup.eu
drivers/spi/spi-mpc52xx.c