disp: msm: sde: add check for sunlight visibility scale

Add check to clip the sunlight visibility scale to an upper limit of
MAX_SV_BL_SCALE_LEVEL * 4.

Change-Id: I8cc7bf8fba90e115d046ec030983801ce6d93c1d
Signed-off-by: Ping Li <pingli@codeaurora.org>
Signed-off-by: Yuchao Ma <yuchaom@codeaurora.org>
This commit is contained in:
Ping Li
2021-10-05 17:04:25 -07:00
committed by Gerrit - the friendly Code Review server
parent 84973878ad
commit dd2e1fd03f
3 changed files with 7 additions and 1 deletions

View File

@@ -732,6 +732,8 @@ struct drm_msm_backlight_info {
__u32 bl_scale_sv;
__u32 status;
__u32 min_bl;
__u32 bl_scale_max;
__u32 bl_scale_sv_max;
};
#define DIMMING_BL_LUT_LEN 8192