Skip to content

Commit f067976

Browse files
committed
drm/i915/cx0: prefer forward declarations over includes
Avoid including the world from headers when forward declarations suffice. Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230921155325.3851197-1-jani.nikula@intel.com
1 parent 6903917 commit f067976

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

drivers/gpu/drm/i915/display/intel_cx0_phy.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
#include <linux/bitfield.h>
1111
#include <linux/bits.h>
1212

13-
#include "i915_drv.h"
14-
#include "intel_display_types.h"
15-
16-
struct drm_i915_private;
17-
struct intel_encoder;
18-
struct intel_crtc_state;
1913
enum icl_port_dpll_id;
2014
enum phy;
15+
struct drm_i915_private;
16+
struct intel_atomic_state;
17+
struct intel_c10pll_state;
18+
struct intel_c20pll_state;
19+
struct intel_crtc_state;
20+
struct intel_encoder;
21+
struct intel_hdmi;
2122

2223
bool intel_is_c10phy(struct drm_i915_private *dev_priv, enum phy phy);
2324
void intel_mtl_pll_enable(struct intel_encoder *encoder,
@@ -44,4 +45,5 @@ void intel_cx0_phy_set_signal_levels(struct intel_encoder *encoder,
4445
const struct intel_crtc_state *crtc_state);
4546
int intel_cx0_phy_check_hdmi_link_rate(struct intel_hdmi *hdmi, int clock);
4647
int intel_mtl_tbt_calc_port_clock(struct intel_encoder *encoder);
48+
4749
#endif /* __INTEL_CX0_PHY_H__ */

0 commit comments

Comments
 (0)