techpack: display: track real backlight value

This commit is contained in:
Cosmin Tanislav 2021-09-10 00:47:53 +03:00 committed by Giovanni Ricca
parent 300e5639fc
commit 5edc27ddf6
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -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) {

View file

@ -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 */