drm/mcde: fix masking and bitwise-or on variable val
authorColin Ian King <colin.king@canonical.com>
Tue, 24 Nov 2020 12:15:28 +0000 (12:15 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Nov 2020 20:58:35 +0000 (21:58 +0100)
commitab43108d0dd48d287e1b5bb9cd4a969457ed9b0e
treea3a6d1f49c51da3e04cfe644104e7759aad68e6d
parentbf8975837dac156c33a4d15d46602700998cb6dd
drm/mcde: fix masking and bitwise-or on variable val

The masking of val with ~MCDE_CRX1_CLKSEL_MASK is currently being
ignored because there seems to be a missing bitwise-or of val in the
following statement.  Fix this by replacing the assignment of val
with a bitwise-or.

Fixes: d795fd322063 ("drm/mcde: Support DPI output")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused valued")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201124121528.395681-1-colin.king@canonical.com
drivers/gpu/drm/mcde/mcde_display.c