projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83064c2
)
tegra: video: fix tegra_dc_sor_config_panel()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 4 Apr 2021 23:48:51 +0000
(
01:48
+0200)
committer
Anatolij Gustschin
<agust@denx.de>
Sat, 10 Apr 2021 15:07:35 +0000
(17:07 +0200)
Bitwise OR has a higher operator precedence than the ternary conditional.
Add the missing parentheses.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/video/tegra124/sor.c
patch
|
blob
|
history
diff --git
a/drivers/video/tegra124/sor.c
b/drivers/video/tegra124/sor.c
index
95976ee
..
ef1a2e6
100644
(file)
--- 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);
}