techpack: display: dsi_panel: expose FOD dim alpha

Change-Id: I2c4431105df6082fcfbaacdbab9165f89720824b
This commit is contained in:
Cosmin Tanislav
2022-12-19 16:33:16 +02:00
committed by Wiktor Rudzki
parent 0bf945bf78
commit 9eacb78d51
2 changed files with 12 additions and 0 deletions

View File

@@ -670,6 +670,17 @@ static u32 dsi_panel_calc_fod_dim_alpha(struct dsi_panel *panel, u32 bl_level)
panel->fod_dim_lut[i].alpha);
}
u8 dsi_panel_get_fod_dim_alpha(struct dsi_panel *panel)
{
u8 alpha;
mutex_lock(&panel->panel_lock);
alpha = panel->fod_dim_alpha;
mutex_unlock(&panel->panel_lock);
return alpha;
}
int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
{
int rc = 0;

View File

@@ -421,5 +421,6 @@ void dsi_panel_destroy_cmd_packets(struct dsi_panel_cmd_set *set);
void dsi_panel_dealloc_cmd_packets(struct dsi_panel_cmd_set *set);
bool dsi_panel_get_fod_ui(struct dsi_panel *panel);
void dsi_panel_set_fod_ui(struct dsi_panel *panel, bool status);
u8 dsi_panel_get_fod_dim_alpha(struct dsi_panel *panel);
#endif /* _DSI_PANEL_H_ */