Commit fd73c850 authored by Hamza Mahfooz's avatar Hamza Mahfooz Committed by Alex Deucher
Browse files

drm/amd/display: drop unused function set_abm_event()



set_abm_event() is never actually used. So, drop it.

Fixes: b8fe5637 ("drm/amd/display: Refactor ABM feature")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 48dd83c0
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -131,17 +131,6 @@ static bool dmub_abm_set_pipe_ex(struct abm *abm, uint32_t otg_inst, uint32_t op
	return ret;
}

static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode,
		unsigned int hdr_mode, unsigned int panel_inst)
{
	bool ret = false;
	unsigned int feature_support;

	feature_support = abm_feature_support(abm, panel_inst);

	return ret;
}

static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm,
		unsigned int backlight_pwm_u16_16,
		unsigned int frame_ramp,
@@ -167,7 +156,6 @@ static const struct abm_funcs abm_funcs = {
	.init_abm_config = dmub_abm_init_config_ex,
	.set_abm_pause = dmub_abm_set_pause_ex,
	.set_pipe_ex = dmub_abm_set_pipe_ex,
	.set_abm_event = dmub_abm_set_event_ex,
	.set_backlight_level_pwm = dmub_abm_set_backlight_level_pwm_ex,
};

+0 −2
Original line number Diff line number Diff line
@@ -59,8 +59,6 @@ struct abm_funcs {
			unsigned int otg_inst,
			unsigned int option,
			unsigned int panel_inst);
	bool (*set_abm_event)(struct abm *abm, unsigned int full_screen, unsigned int video_mode,
			unsigned int hdr_mode, unsigned int panel_inst);
};

#endif