OSDN Git Service

drm/sun4i: hdmi: Fix double flag assignation
authorMaxime Ripard <maxime.ripard@bootlin.com>
Sun, 21 Oct 2018 16:34:46 +0000 (18:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:00 +0000 (14:50 +0100)
commit7fa8d89c566995be256bd7f90b51a3407ac61dae
tree616316c2c7c12551db7baa9351b66a264eb9bc3d
parent38cd31f38159bc6c72051eae026c0def2cac2410
drm/sun4i: hdmi: Fix double flag assignation

[ Upstream commit 1e0ff648940e603cab6c52cf3723017d30d78f30 ]

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: 9c5681011a0c ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c