spi: omap-100k: Rely on validations done by spi core
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 15 Sep 2015 13:26:21 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2015 11:34:20 +0000 (12:34 +0100)
commit76f67ea9bf27b045eacf8f1e148fd13149f51823
tree8beaf78c07e1db3899c2c7ac6fff468c38b4e48d
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
spi: omap-100k: Rely on validations done by spi core

SPI core validates both bits_per_word and speed_hz transfer parameters and
defaults to spi->bits_per_word and spi->max_speed_hz in case these per
transfer parameters are not set.

This allows to remove a few if statements around per transfer bits_per_word
and speed_hz tests as they evaluate always to true.

Also defaulting word_len to 8 is needless since spi_setup() has already
made sure spi->bits_per_word is 8 in case it is not set.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap-100k.c
This page took 0.024859 seconds and 5 git commands to generate.