diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-20 09:31:12 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-20 21:24:00 +0200 |
commit | 380583227c0c7f52383b0cd5c0e2de93ed31d553 (patch) | |
tree | 4c8e3116c6204deadac7fc7506d7bcfdf6ffee41 /net/key | |
parent | spi: spi-davinci: Don't error when SPI_CS_WORD and cs_gpio (diff) | |
download | linux-380583227c0c7f52383b0cd5c0e2de93ed31d553.tar.xz linux-380583227c0c7f52383b0cd5c0e2de93ed31d553.zip |
spi: spi-mem: Add extra sanity checks on the op param
Some combinations are simply not valid and should be rejected before
the op is passed to the SPI controller driver.
Add an spi_mem_check_op() helper and use it in spi_mem_exec_op() and
spi_mem_supports_op() to make sure the spi-mem operation is valid.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions