diff options
| author | Andrew Goodbody <[email protected]> | 2025-10-01 12:55:37 +0100 |
|---|---|---|
| committer | Svyatoslav Ryhel <[email protected]> | 2025-10-28 11:27:44 +0200 |
| commit | 1530cfe09a2c24abbbcc665c59a2f1acf4aeb054 (patch) | |
| tree | 4c8af6faf5e9650849dcc81e68f9d9914fb6c6e3 | |
| parent | f77584b53ac89588d8112a3d58f6da16a554c589 (diff) | |
video: tegra: Incorrect operator used
Combining two bits into a mask requires the use of the binary 'or'
operator not the logical one. Correct it.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Acked-by: Svyatoslav Ryhel <[email protected]>
| -rw-r--r-- | drivers/video/tegra/tegra124/sor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/tegra124/sor.c b/drivers/video/tegra/tegra124/sor.c index 1ce5330c6bc..ccdeefbcbb1 100644 --- a/drivers/video/tegra/tegra124/sor.c +++ b/drivers/video/tegra/tegra124/sor.c @@ -336,7 +336,7 @@ static int tegra_dc_sor_io_set_dpd(struct tegra_dc_sor_data *sor, int up) } reg_val = readl(pmc_base + APBDEV_PMC_IO_DPD2_REQ); - reg_val &= ~(APBDEV_PMC_IO_DPD2_REQ_LVDS_ON || + reg_val &= ~(APBDEV_PMC_IO_DPD2_REQ_LVDS_ON | APBDEV_PMC_IO_DPD2_REQ_CODE_DEFAULT_MASK); reg_val = up ? APBDEV_PMC_IO_DPD2_REQ_LVDS_ON | |
