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> |
---|
|
drivers/spi/spi.c |
---|
include/spi/spi.h |
---|