diff mbox series

drm/sun4i: Fix compilation error

Message ID 20240528151056.2104153-1-mripard@kernel.org (mailing list archive)
State New, archived
Headers show
Series drm/sun4i: Fix compilation error | expand

Commit Message

Maxime Ripard May 28, 2024, 3:10 p.m. UTC
Commit ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
introduced a dependency that got renamed in a previous version, but
wasn't properly updated in that driver. Fix the name of the function.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202405282205.EU7NUoeQ-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202405282248.U2lhPvCK-lkp@intel.com/
Fixes: ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Javier Martinez Canillas May 29, 2024, 7:38 a.m. UTC | #1
Maxime Ripard <mripard@kernel.org> writes:

Hello Maxime,

> Commit ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
> introduced a dependency that got renamed in a previous version, but
> wasn't properly updated in that driver. Fix the name of the function.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202405282205.EU7NUoeQ-lkp@intel.com/
> Closes: https://lore.kernel.org/oe-kbuild-all/202405282248.U2lhPvCK-lkp@intel.com/
> Fixes: ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
> Signed-off-by: Maxime Ripard <mripard@kernel.org>
> ---

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Maxime Ripard May 29, 2024, 8:14 a.m. UTC | #2
On Tue, 28 May 2024 17:10:56 +0200, Maxime Ripard wrote:
> Commit ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
> introduced a dependency that got renamed in a previous version, but
> wasn't properly updated in that driver. Fix the name of the function.
> 
> 

Applied to misc/kernel.git (drm-misc-next).

Thanks!
Maxime
Dmitry Baryshkov May 29, 2024, 8:33 a.m. UTC | #3
On Wed, May 29, 2024 at 10:14:55AM +0200, Maxime Ripard wrote:
> On Tue, 28 May 2024 17:10:56 +0200, Maxime Ripard wrote:
> > Commit ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
> > introduced a dependency that got renamed in a previous version, but
> > wasn't properly updated in that driver. Fix the name of the function.
> > 
> > 
> 
> Applied to misc/kernel.git (drm-misc-next).

Just to note, I don't see this commit in drm-misc-next.

> 
> Thanks!
> Maxime
>
Maxime Ripard May 29, 2024, 9:15 a.m. UTC | #4
On Wed, May 29, 2024 at 11:33:43AM GMT, Dmitry Baryshkov wrote:
> On Wed, May 29, 2024 at 10:14:55AM +0200, Maxime Ripard wrote:
> > On Tue, 28 May 2024 17:10:56 +0200, Maxime Ripard wrote:
> > > Commit ea64761a54a2 ("drm/sun4i: hdmi: Switch to HDMI connector")
> > > introduced a dependency that got renamed in a previous version, but
> > > wasn't properly updated in that driver. Fix the name of the function.
> > > 
> > > 
> > 
> > Applied to misc/kernel.git (drm-misc-next).
> 
> Just to note, I don't see this commit in drm-misc-next.

Thanks for the notice, I forgot to push it indeed.

It's now fixed

Maxime
diff mbox series

Patch

diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
index 0e652dd480c9..b3649449de30 100644
--- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
+++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
@@ -207,13 +207,12 @@  static int sun4i_hdmi_connector_atomic_check(struct drm_connector *connector,
 
 static enum drm_mode_status
 sun4i_hdmi_connector_mode_valid(struct drm_connector *connector,
 				struct drm_display_mode *mode)
 {
-	unsigned long long rate =
-		drm_connector_hdmi_compute_mode_clock(mode, 8,
-						      HDMI_COLORSPACE_RGB);
+	unsigned long long rate = drm_hdmi_compute_mode_clock(mode, 8,
+							      HDMI_COLORSPACE_RGB);
 
 	return sun4i_hdmi_connector_clock_valid(connector, mode, rate);
 }
 
 static int sun4i_hdmi_get_modes(struct drm_connector *connector)