disp: msm: limit display brightness max cooling device level
Based on panel hardware support, display brightness levels can be very high value. This high value display brightness cooling device levels can cause exceeding PAGE_SIZE for cooling device stat buffer. It leads to buffer failure for cooling device stat feature. Limit display panel mitigation level max to 255. If hardware supports more than 255, then scale brightness levels fit into above limit. Change-Id: Ieeee4ff2aa5cd884819b30b4fd9839e48ac4d804 Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
61963b0791
commit
479a5292e6
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __SDE_THERMAL_CORE_H__
|
||||
@@ -16,6 +16,7 @@ struct sde_cdev {
|
||||
struct thermal_cooling_device *cdev;
|
||||
struct backlight_device *bd;
|
||||
unsigned long thermal_state;
|
||||
unsigned int cdev_sf;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_THERMAL_OF
|
||||
|
Reference in New Issue
Block a user