]> 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)
commit3dc4c107fd7f8d1365168322937524120b33ebf1
treed5f0414ab1fa66c9522434d855b0afb368655d3a
parent4f0f5f3956792788db2432bfab39d27dde6f045d
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