Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

Fixes: b8fe56375f78 ("drm/amd/display: Refactor ABM feature")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Tom Rix <trix@redhat.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hamza Mahfooz and committed by
Alex Deucher
fd73c850 48dd83c0

-14
-12
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
··· 131 131 return ret; 132 132 } 133 133 134 - static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode, 135 - unsigned int hdr_mode, unsigned int panel_inst) 136 - { 137 - bool ret = false; 138 - unsigned int feature_support; 139 - 140 - feature_support = abm_feature_support(abm, panel_inst); 141 - 142 - return ret; 143 - } 144 - 145 134 static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm, 146 135 unsigned int backlight_pwm_u16_16, 147 136 unsigned int frame_ramp, ··· 156 167 .init_abm_config = dmub_abm_init_config_ex, 157 168 .set_abm_pause = dmub_abm_set_pause_ex, 158 169 .set_pipe_ex = dmub_abm_set_pipe_ex, 159 - .set_abm_event = dmub_abm_set_event_ex, 160 170 .set_backlight_level_pwm = dmub_abm_set_backlight_level_pwm_ex, 161 171 }; 162 172
-2
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
··· 59 59 unsigned int otg_inst, 60 60 unsigned int option, 61 61 unsigned int panel_inst); 62 - bool (*set_abm_event)(struct abm *abm, unsigned int full_screen, unsigned int video_mode, 63 - unsigned int hdr_mode, unsigned int panel_inst); 64 62 }; 65 63 66 64 #endif