]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: hdmi: Fix double flag assignation
authorMaxime Ripard <maxime.ripard@bootlin.com>
Sun, 21 Oct 2018 16:34:46 +0000 (18:34 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 29 Oct 2018 13:19:51 +0000 (14:19 +0100)
commit3b8fa2f69642bb817968aab14dc6c1cebb4a773e
tree25798489b9f2f5f13da59e462479ffcf6ba5423f
parentbac646b653cdd2374f006d1b436e58d39720b999
drm/sun4i: hdmi: Fix double flag assignation

The is_double flag is a boolean currently assigned to the value of the d
variable, that is either 1 or 2. It means that this is_double variable is
always set to true, even though the initial intent was to have it set to
true when d is 2.

Fix this.

Fixes: 6c088b7a3095 ("drm/sun4i: Add HDMI support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181021163446.29135-2-maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c