Skip to content

Commit 9274a94

Browse files
committed
drm/dp: Change current_level argument type to u32
Change the current_level argument type to u32 from u16 since it can now carry the value which it gets from DP_EDP_PANEL_TARGET_LUMINANCE_VALUE. Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Link: https://lore.kernel.org/r/20250620063445.3603086-6-suraj.kandpal@intel.com
1 parent 08e81e2 commit 9274a94

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/gpu/drm/display/drm_dp_helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4254,7 +4254,7 @@ int
42544254
drm_edp_backlight_init(struct drm_dp_aux *aux, struct drm_edp_backlight_info *bl,
42554255
u32 max_luminance,
42564256
u16 driver_pwm_freq_hz, const u8 edp_dpcd[EDP_DISPLAY_CTL_CAP_SIZE],
4257-
u16 *current_level, u8 *current_mode, bool need_luminance)
4257+
u32 *current_level, u8 *current_mode, bool need_luminance)
42584258
{
42594259
int ret;
42604260

@@ -4362,7 +4362,7 @@ int drm_panel_dp_aux_backlight(struct drm_panel *panel, struct drm_dp_aux *aux)
43624362
{
43634363
struct dp_aux_backlight *bl;
43644364
struct backlight_properties props = { 0 };
4365-
u16 current_level;
4365+
u32 current_level;
43664366
u8 current_mode;
43674367
u8 edp_dpcd[EDP_DISPLAY_CTL_CAP_SIZE];
43684368
int ret;

drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static int intel_dp_aux_vesa_setup_backlight(struct intel_connector *connector,
580580
&connector->base.display_info.luminance_range;
581581
struct intel_dp *intel_dp = intel_attached_dp(connector);
582582
struct intel_panel *panel = &connector->panel;
583-
u16 current_level;
583+
u32 current_level;
584584
u8 current_mode;
585585
int ret;
586586

drivers/gpu/drm/nouveau/nouveau_backlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ nv50_backlight_init(struct nouveau_backlight *bl,
245245

246246
if (nv_conn->type == DCB_CONNECTOR_eDP) {
247247
int ret;
248-
u16 current_level;
248+
u32 current_level;
249249
u8 edp_dpcd[EDP_DISPLAY_CTL_CAP_SIZE];
250250
u8 current_mode;
251251

include/drm/display/drm_dp_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ int
856856
drm_edp_backlight_init(struct drm_dp_aux *aux, struct drm_edp_backlight_info *bl,
857857
u32 max_luminance,
858858
u16 driver_pwm_freq_hz, const u8 edp_dpcd[EDP_DISPLAY_CTL_CAP_SIZE],
859-
u16 *current_level, u8 *current_mode, bool need_luminance);
859+
u32 *current_level, u8 *current_mode, bool need_luminance);
860860
int drm_edp_backlight_set_level(struct drm_dp_aux *aux, const struct drm_edp_backlight_info *bl,
861861
u16 level);
862862
int drm_edp_backlight_enable(struct drm_dp_aux *aux, const struct drm_edp_backlight_info *bl,

0 commit comments

Comments
 (0)