techpack: display: track real backlight value
This commit is contained in:
parent
300e5639fc
commit
5edc27ddf6
2 changed files with 4 additions and 0 deletions
|
|
@ -648,6 +648,8 @@ int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
|
|||
rc = -ENOTSUPP;
|
||||
}
|
||||
|
||||
bl->real_bl_level = bl_lvl;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
@ -2427,6 +2429,7 @@ static int dsi_panel_parse_bl_config(struct dsi_panel *panel)
|
|||
|
||||
panel->bl_config.bl_scale = MAX_BL_SCALE_LEVEL;
|
||||
panel->bl_config.bl_scale_sv = MAX_SV_BL_SCALE_LEVEL;
|
||||
panel->bl_config.real_bl_level = 0;
|
||||
|
||||
rc = utils->read_u32(utils->data, "qcom,mdss-dsi-bl-min-level", &val);
|
||||
if (rc) {
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ struct dsi_backlight_config {
|
|||
u32 bl_scale;
|
||||
u32 bl_scale_sv;
|
||||
bool bl_inverted_dbv;
|
||||
u32 real_bl_level;
|
||||
|
||||
int en_gpio;
|
||||
/* PWM params */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue