staging: imx-drm: imx-hdmi: clean up hdmi_phy_wait_i2c_done
authorEmil Renner Berthing <kernel@esmil.dk>
Sat, 29 Mar 2014 23:21:21 +0000 (00:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 23:11:03 +0000 (16:11 -0700)
commit0e6bcf3a1539eff7a7c16af18de65f186b177ea4
treec501b1ea49783f258c8cdb91ec9c9b1b10ef4910
parent9e74d2926a283dac17d3ab22ca982aab3a4a05d8
staging: imx-drm: imx-hdmi: clean up hdmi_phy_wait_i2c_done

Simplify hdmi_phy_wait_i2c_done so the call to hdmi_readb is
only done in one place. Also check for timout before waiting
as suggested by Troy Kisky.
This also fixes a checkpatch warning.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-hdmi.c