spi: validate spi messages
This adds __spi_validate() to validate spi messages. This function is a
stripped down version from the Kernel. The motivation for adding this
was to fill in xfer->bits_per_word from spi->bits_per_word so that a
spi bus driver can use the former.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ef46f2d commit 1813487725e85b6ca0b64e03965e6ac4f56e556e
@Sascha Hauer Sascha Hauer authored on 24 Mar 2020
Showing 2 changed files
View
drivers/spi/spi.c
View
include/spi/spi.h