From: Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com>
To: Hamza Mahfooz <hamza.mahfooz@amd.com>, amd-gfx@lists.freedesktop.org
Cc: "kernel test robot" <lkp@intel.com>, "Tom Rix" <trix@redhat.com>,
"Harry Wentland" <harry.wentland@amd.com>,
"Leo Li" <sunpeng.li@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Pan, Xinhui" <Xinhui.Pan@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Qingqing Zhuo" <qingqing.zhuo@amd.com>,
"Aurabindo Pillai" <aurabindo.pillai@amd.com>,
"Hans de Goede" <hdegoede@redhat.com>,
"Hersen Wu" <hersenxs.wu@amd.com>,
"Stylon Wang" <stylon.wang@amd.com>,
"Wenjing Liu" <wenjing.liu@amd.com>,
"Leon Huang" <Leon.Huang1@amd.com>,
"Mike Hsieh" <Mike.Hsieh@amd.com>,
"Cruise Hung" <Cruise.Hung@amd.com>,
"Nasir Osman" <nasir.osman@amd.com>,
pengfuyuan <pengfuyuan@kylinos.cn>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] drm/amd/display: drop unused function set_abm_event()
Date: Wed, 17 May 2023 18:03:19 -0600 [thread overview]
Message-ID: <3e4b8bed-005e-1b12-82f4-45b5cf3e7b71@amd.com> (raw)
In-Reply-To: <20230517183350.314082-2-hamza.mahfooz@amd.com>
On 5/17/23 12:33, Hamza Mahfooz wrote:
> set_abm_event() is never actually used. So, drop it.
>
> Fixes: b46c01aa0329 ("drm/amd/display: Refactor ABM feature")
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Tom Rix <trix@redhat.com>
> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 12 ------------
> drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 2 --
> 2 files changed, 14 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
> index a66f83a61402..2fb9572ce25d 100644
> --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
> +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
> @@ -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,
> };
>
> diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
> index db5cf9acafe6..d2190a3320f6 100644
> --- a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
> +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
> @@ -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
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
next prev parent reply other threads:[~2023-05-18 0:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 18:33 [PATCH 1/3] drm/amd/display: drop redundant memset() in get_available_dsc_slices() Hamza Mahfooz
2023-05-17 18:33 ` [PATCH 2/3] drm/amd/display: drop unused function set_abm_event() Hamza Mahfooz
2023-05-18 0:03 ` Rodrigo Siqueira Jordao [this message]
2023-05-17 18:33 ` [PATCH 3/3] drm/amd/display: drop unused count variable in create_eml_sink() Hamza Mahfooz
2023-05-18 0:04 ` Rodrigo Siqueira Jordao
2023-08-22 11:43 ` Jani Nikula
2023-05-18 0:01 ` [PATCH 1/3] drm/amd/display: drop redundant memset() in get_available_dsc_slices() Rodrigo Siqueira Jordao
2023-05-18 6:28 ` Marion & Christophe JAILLET
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3e4b8bed-005e-1b12-82f4-45b5cf3e7b71@amd.com \
--to=rodrigo.siqueira@amd.com \
--cc=Cruise.Hung@amd.com \
--cc=Leon.Huang1@amd.com \
--cc=Mike.Hsieh@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=hamza.mahfooz@amd.com \
--cc=harry.wentland@amd.com \
--cc=hdegoede@redhat.com \
--cc=hersenxs.wu@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=nasir.osman@amd.com \
--cc=pengfuyuan@kylinos.cn \
--cc=qingqing.zhuo@amd.com \
--cc=stylon.wang@amd.com \
--cc=sunpeng.li@amd.com \
--cc=trix@redhat.com \
--cc=wenjing.liu@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®