spi: topcliff-pch: Use core message validation
authorMark Brown <broonie@kernel.org>
Wed, 15 Jun 2022 17:41:38 +0000 (18:41 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jun 2022 11:43:36 +0000 (12:43 +0100)
commit26f30e3ee1bf120af1bde22d890e46a0c8dbeca0
treed5f0414ab1fa66c9522434d855b0afb368655d3a
parent2081ad1467469b649fc9f9226b235977a7bf9402
spi: topcliff-pch: Use core message validation

The topcliff-pch driver requires TX and RX buffers on all transfers, open
coding checks for this. Remove those open coded checks and instead rely on
the core functionality, which has the added bonus that it will fix up any
transfers submitted by drivers as needed rather than erroring out.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220615174138.4060912-1-broonie@kernel.org
drivers/spi/spi-topcliff-pch.c