disp: msm: sde: Register display brightness cooling device

Register for getting a blocking notified call when the display cooling
device mitigates. Update the current brightness to the thermally allowed
level.

Change-Id: I20945a20751646e6d9bbf8bb7e7039c6ce43c306
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
This commit is contained in:
Ram Chandrasekar
2020-04-03 16:00:11 -07:00
committed by Gerrit - the friendly Code Review server
szülő 132fd3941e
commit 53654b534a
2 fájl változott, egészen pontosan 36 új sor hozzáadva és 0 régi sor törölve

Fájl megtekintése

@@ -412,6 +412,9 @@ struct sde_connector_dyn_hdr_metadata {
* @event_table: Array of registered events
* @event_lock: Lock object for event_table
* @bl_device: backlight device node
* @cdev: backlight cooling device interface
* @n: backlight cooling device notifier
* @thermal_max_brightness: thermal max brightness cap
* @status_work: work object to perform status checks
* @esd_status_interval: variable to change ESD check interval in millisec
* @panel_dead: Flag to indicate if panel has gone bad
@@ -470,6 +473,9 @@ struct sde_connector {
spinlock_t event_lock;
struct backlight_device *bl_device;
struct sde_cdev *cdev;
struct notifier_block n;
unsigned long thermal_max_brightness;
struct delayed_work status_work;
u32 esd_status_interval;
bool panel_dead;