mxs/spi: Rework the mxs_ssp_timeout to be more readable
authorMarek Vasut <marex@denx.de>
Tue, 4 Sep 2012 02:40:18 +0000 (04:40 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Sep 2012 23:42:29 +0000 (07:42 +0800)
commitf13639dc6043eb67e308aa5cf96717a86c10f8b9
treeb9db2344a4962138a2ec58acbca40aa8fa5ead6e
parent727c10e3e54c4404f6842d246b15fe3703d33556
mxs/spi: Rework the mxs_ssp_timeout to be more readable

Rework the mxs_ssp_timeout() function to make it a bit more readable
and hopefully less error prone. Also, have only one successful exit
from the function and one failing exit instead of two.

Finally, discard the udelay() from this function altogether, as this
tightloop is quick enough it's pointless.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-mxs.c
This page took 0.025882 seconds and 5 git commands to generate.