From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 7/7] drm/i915/pm: hide struct drm_i915_clock_gating_funcs
Date: Wed, 9 Feb 2022 12:45:44 +0200 [thread overview]
Message-ID: <YgObWDqQwhh6+aNz@intel.com> (raw)
In-Reply-To: <63779ac0472895803113180818ecadc22c10369e.1643896905.git.jani.nikula@intel.com>
On Thu, Feb 03, 2022 at 04:02:33PM +0200, Jani Nikula wrote:
> The struct is only needed in intel_pm.c, move it there.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
I find these single vfunc structs a bit ridiculous, but since
we have them might as well hide them.
For the series is
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_drv.h | 6 +-----
> drivers/gpu/drm/i915/intel_pm.c | 4 ++++
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 078fc50e7eb9..4ac0fcb9a4ca 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -107,6 +107,7 @@
> #include "i915_vma.h"
>
> struct dpll;
> +struct drm_i915_clock_gating_funcs;
> struct drm_i915_gem_object;
> struct drm_i915_private;
> struct intel_atomic_state;
> @@ -302,11 +303,6 @@ struct sdvo_device_mapping {
> u8 ddc_pin;
> };
>
> -/* functions used internal in intel_pm.c */
> -struct drm_i915_clock_gating_funcs {
> - void (*init_clock_gating)(struct drm_i915_private *dev_priv);
> -};
> -
> /* functions used for watermark calcs for display. */
> struct drm_i915_wm_disp_funcs {
> /* update_wm is for legacy wm management */
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 859be750fb22..2e84d45f9bf0 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -55,6 +55,10 @@
> #include "vlv_sideband.h"
> #include "../../../platform/x86/intel_ips.h"
>
> +struct drm_i915_clock_gating_funcs {
> + void (*init_clock_gating)(struct drm_i915_private *i915);
> +};
> +
> /* Stores plane specific WM parameters */
> struct skl_wm_params {
> bool x_tiled, y_tiled;
> --
> 2.30.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2022-02-09 10:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 14:02 [Intel-gfx] [PATCH 0/7] drm/i915: split out function structs from i915_drv.h Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 1/7] drm/i915: group i915_drv.h forward declarations together Jani Nikula
2022-02-09 10:42 ` Ville Syrjälä
2022-02-03 14:02 ` [Intel-gfx] [PATCH 2/7] drm/i915/color: hide struct intel_color_funcs Jani Nikula
2022-02-09 10:43 ` Ville Syrjälä
2022-02-03 14:02 ` [Intel-gfx] [PATCH 3/7] drm/i915/hpd: hide struct intel_hotplug_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 4/7] drm/i915/fdi: hide struct intel_fdi_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 5/7] drm/i915/dpll: add intel_dpll_crtc_compute_clock() Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 6/7] drm/i915/dpll: hide struct intel_dpll_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 7/7] drm/i915/pm: hide struct drm_i915_clock_gating_funcs Jani Nikula
2022-02-09 10:45 ` Ville Syrjälä [this message]
2022-02-09 13:12 ` Jani Nikula
2022-02-03 14:56 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: split out function structs from i915_drv.h Patchwork
2022-02-03 15:26 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-02-03 18:28 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=YgObWDqQwhh6+aNz@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.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