]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f9bd770963ab31eddea294f13632d7337327aba
treed5f0414ab1fa66c9522434d855b0afb368655d3a
parentd298a3f254350297eeb9c78e5e2f9a2b267987f5
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