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>
This commit is contained in:
parent
ae2f6cb5ad
commit
a8988fe98c
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue