spi: spi-mxs: Clean up setup_transfer function
authorTrent Piepho <tpiepho@gmail.com>
Tue, 1 Oct 2013 20:15:40 +0000 (13:15 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 18 Oct 2013 00:00:32 +0000 (01:00 +0100)
commitaa9e0c6feb3e06463b45b0d9734a2cdbf95c4431
tree843355f971b8a030cf4aba13aa8d0f586fe72cdb
parentd426eadb1ef166b472b09a223c30d3104fde2586
spi: spi-mxs: Clean up setup_transfer function

It can't be called with a NULL transfer anymore so it can be simplified
to not check for that.

Fix indention of line-wrapped code to Linux standard.

The transfer pointer can be const.

It's not necessary to check if the spi_transfer's speed_hz is zero, as
the spi core also fills it in from the spi_device.  However, the spi
core does not check if spi_device's speed is zero so we have to do
that still.

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c