summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-04-05 01:48:51 +0200
committerAnatolij Gustschin <agust@denx.de>2021-04-10 17:07:35 +0200
commit131c224168c63e22570b84f757ccf2c8898a1a1a (patch)
tree0753c92c631b1d8acb90041466803d9ed184c66b /drivers/video
parent83064c27063dbc969477eda6a924f1418dc63991 (diff)
downloadu-boot-131c224168c63e22570b84f757ccf2c8898a1a1a.tar.gz
tegra: video: fix tegra_dc_sor_config_panel()
Bitwise OR has a higher operator precedence than the ternary conditional. Add the missing parentheses. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/tegra124/sor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c
index 95976ee573..ef1a2e6dc0 100644
--- a/drivers/video/tegra124/sor.c
+++ b/drivers/video/tegra124/sor.c
@@ -671,8 +671,8 @@ static void tegra_dc_sor_config_panel(struct tegra_dc_sor_data *sor,
CSTM_ROTCLK_DEFAULT_MASK |
CSTM_LVDS_EN_ENABLE,
2 << CSTM_ROTCLK_SHIFT |
- is_lvds ? CSTM_LVDS_EN_ENABLE :
- CSTM_LVDS_EN_DISABLE);
+ (is_lvds ? CSTM_LVDS_EN_ENABLE :
+ CSTM_LVDS_EN_DISABLE));
tegra_dc_sor_config_pwm(sor, 1024, 1024);
}