summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorCamus Wong <camusw@codeaurora.org>2017-11-11 00:41:10 -0500
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-15 10:35:25 -0800
commita8988fe98cc7eb0a0a312f6233e1826c817d36cd (patch)
tree4cfaf4618f546603b1d283e0ffa3f5e17a88aad8 /drivers/gpu/drm
parentae2f6cb5ada42a3e3da6182ac3092007f5a319d8 (diff)
SDE: Fix the minimum value in display property
The minium value of u32 is zero instead of -1. -1 will become the largest value in u32. Change-Id: I20fcab7d5912d6da7c4afe1ec7a86333767b0bf1 Signed-off-by: Camus Wong <camusw@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/msm/sde/sde_plane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c
index 9cbee5243e6d..f5f125c3f71c 100644
--- a/drivers/gpu/drm/msm/sde/sde_plane.c
+++ b/drivers/gpu/drm/msm/sde/sde_plane.c
@@ -1808,8 +1808,8 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
char feature_name[256];
struct sde_phy_plane *pp;
uint32_t features = 0xFFFFFFFF, nformats = 64;
- u32 maxlinewidth = -1, maxupscale = -1, maxdwnscale = -1;
- u32 maxhdeciexp = -1, maxvdeciexp = -1;
+ u32 maxlinewidth = 0, maxupscale = 0, maxdwnscale = 0;
+ u32 maxhdeciexp = 0, maxvdeciexp = 0;
if (!plane || !psde) {
SDE_ERROR("invalid plane\n");