diff mbox series

[2/4] drm/i915/dsb: Move DSB ID definition to the header

Message ID 20240531114101.19994-3-ville.syrjala@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/dsb: A bit of polish | expand

Commit Message

Ville Syrjala May 31, 2024, 11:40 a.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

We're going to need to make the DSB ID visible outside the DSB
code, so that we eg. can use multiple DSB engines in parallel.
to that end move the definition to intel_dsb.h.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_dsb.c | 8 --------
 drivers/gpu/drm/i915/display/intel_dsb.h | 8 ++++++++
 2 files changed, 8 insertions(+), 8 deletions(-)

Comments

Manna, Animesh June 6, 2024, 6:56 p.m. UTC | #1
> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Ville
> Syrjala
> Sent: Friday, May 31, 2024 5:11 PM
> To: intel-gfx@lists.freedesktop.org
> Subject: [PATCH 2/4] drm/i915/dsb: Move DSB ID definition to the header
> 
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> We're going to need to make the DSB ID visible outside the DSB code, so that
> we eg. can use multiple DSB engines in parallel.
> to that end move the definition to intel_dsb.h.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Animesh Manna <animesh.manna@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_dsb.c | 8 --------
> drivers/gpu/drm/i915/display/intel_dsb.h | 8 ++++++++
>  2 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c
> b/drivers/gpu/drm/i915/display/intel_dsb.c
> index 0e2bd9a2f9da..f3bfa5b1672c 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsb.c
> +++ b/drivers/gpu/drm/i915/display/intel_dsb.c
> @@ -19,14 +19,6 @@
> 
>  #define CACHELINE_BYTES 64
> 
> -enum intel_dsb_id {
> -	INTEL_DSB_0,
> -	INTEL_DSB_1,
> -	INTEL_DSB_2,
> -
> -	I915_MAX_DSBS,
> -};
> -
>  struct intel_dsb {
>  	enum intel_dsb_id id;
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_dsb.h
> b/drivers/gpu/drm/i915/display/intel_dsb.h
> index 16d80f434356..5d7561ea65fa 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsb.h
> +++ b/drivers/gpu/drm/i915/display/intel_dsb.h
> @@ -14,6 +14,14 @@ struct intel_crtc;
>  struct intel_crtc_state;
>  struct intel_dsb;
> 
> +enum intel_dsb_id {
> +	INTEL_DSB_0,
> +	INTEL_DSB_1,
> +	INTEL_DSB_2,
> +
> +	I915_MAX_DSBS,
> +};
> +
>  struct intel_dsb *intel_dsb_prepare(const struct intel_crtc_state *crtc_state,
>  				    unsigned int max_cmds);
>  void intel_dsb_finish(struct intel_dsb *dsb);
> --
> 2.44.1
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i915/display/intel_dsb.c
index 0e2bd9a2f9da..f3bfa5b1672c 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.c
+++ b/drivers/gpu/drm/i915/display/intel_dsb.c
@@ -19,14 +19,6 @@ 
 
 #define CACHELINE_BYTES 64
 
-enum intel_dsb_id {
-	INTEL_DSB_0,
-	INTEL_DSB_1,
-	INTEL_DSB_2,
-
-	I915_MAX_DSBS,
-};
-
 struct intel_dsb {
 	enum intel_dsb_id id;
 
diff --git a/drivers/gpu/drm/i915/display/intel_dsb.h b/drivers/gpu/drm/i915/display/intel_dsb.h
index 16d80f434356..5d7561ea65fa 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.h
+++ b/drivers/gpu/drm/i915/display/intel_dsb.h
@@ -14,6 +14,14 @@  struct intel_crtc;
 struct intel_crtc_state;
 struct intel_dsb;
 
+enum intel_dsb_id {
+	INTEL_DSB_0,
+	INTEL_DSB_1,
+	INTEL_DSB_2,
+
+	I915_MAX_DSBS,
+};
+
 struct intel_dsb *intel_dsb_prepare(const struct intel_crtc_state *crtc_state,
 				    unsigned int max_cmds);
 void intel_dsb_finish(struct intel_dsb *dsb);