From: Zheng Yang Date: Fri, 18 Nov 2016 09:16:15 +0000 (+0800) Subject: video: rockchip: hdmi: fix can not disable hdr error X-Git-Tag: firefly_0821_release~634 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb96568f28f578b232b1be39319351fd7fe1252c;p=firefly-linux-kernel-4.4.55.git video: rockchip: hdmi: fix can not disable hdr error Change-Id: I53f809d78a8a151a6b6985266ec73026bdc0b3a2 Signed-off-by: Zheng Yang (cherry picked from commit b60715d9a028e849bd40a0f1a9693f0519e66f06) --- diff --git a/drivers/video/rockchip/hdmi/rockchip-hdmi-sysfs.c b/drivers/video/rockchip/hdmi/rockchip-hdmi-sysfs.c index 49ecc91cd544..8167698e252a 100644 --- a/drivers/video/rockchip/hdmi/rockchip-hdmi-sysfs.c +++ b/drivers/video/rockchip/hdmi/rockchip-hdmi-sysfs.c @@ -262,7 +262,7 @@ static int hdmi_set_color(struct rk_display_device *device, hdmi->eotf, value); if (hdmi->eotf != value && (value & hdmi->edid.hdr.hdrinfo.eotf || - hdmi->eotf == 0)) + value == 0)) hdmi->eotf = value; else return 0;