disp: msm: extend the maximum value of backlight scale
The maximum value of backlight scaling property is enlarged from 65535 to U32_MAX. Change supports DRE feature to increase backlight level through backlight scaling property. Change-Id: Ibe929308faf8c6f94bacbec7f58cc4ffe8133a85 Signed-off-by: Xu Yang <yangxu@codeaurora.org>
This commit is contained in:
@@ -230,6 +230,8 @@ int dsi_display_set_backlight(struct drm_connector *connector,
|
||||
|
||||
bl_scale_sv = panel->bl_config.bl_scale_sv;
|
||||
bl_temp = (u32)bl_temp * bl_scale_sv / MAX_SV_BL_SCALE_LEVEL;
|
||||
if (bl_temp > panel->bl_config.bl_max_level)
|
||||
bl_temp = panel->bl_config.bl_max_level;
|
||||
|
||||
DSI_DEBUG("bl_scale = %u, bl_scale_sv = %u, bl_lvl = %u\n",
|
||||
bl_scale, bl_scale_sv, (u32)bl_temp);
|
||||
|
Reference in New Issue
Block a user