]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfaf2dd6877e6db5d7f1e78981e414513d256893e
treec501b1ea49783f258c8cdb91ec9c9b1b10ef4910
parenta7ea6733702f9c070e3ccf99eac1ec5095e539ba
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