From: Trent Piepho Date: Tue, 1 Oct 2013 20:15:40 +0000 (-0700) Subject: spi: spi-mxs: Clean up setup_transfer function X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~15^2~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9e0c6feb3e06463b45b0d9734a2cdbf95c4431;p=pandora-kernel.git 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 Cc: Marek Vasut Cc: Fabio Estevam Cc: Shawn Guo Signed-off-by: Mark Brown --- Reading git-diff-tree failed