]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-mxs: Remove mxs_spi_enable and mxs_spi_disable
authorTrent Piepho <tpiepho@gmail.com>
Tue, 1 Oct 2013 20:14:32 +0000 (13:14 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 18 Oct 2013 00:00:29 +0000 (01:00 +0100)
commit29819d32d77a3003d95d5b00f83b6caa792ad115
tree58021494a152ff4dc5d9f502f9a4badb7c2d4807
parent2f8c3a8f61c687f55125b2fd6dfd378ea9916649
spi: spi-mxs: Remove mxs_spi_enable and mxs_spi_disable

These functions consist of nothing but one single writel call and are
only called once.  And the names really aren't accurate or clear,
since they don't enable or disble SPI.  Rather they set the bit that
controls the state of CS at the end of transfer.  It easier to follow
the code to just set this bit with a writel() along with all the other
bits being set in the same function.

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