techpack: display: dsi_panel: expose FOD dim alpha
Change-Id: I2c4431105df6082fcfbaacdbab9165f89720824b
This commit is contained in:
committed by
Wiktor Rudzki
parent
0bf945bf78
commit
9eacb78d51
@@ -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;
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user