mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
drm/i915/gvt: drop dependency on intel_display_types.h
Avoid even accidental use of display details by dropping the include of intel_display_types.h. We'll still have to include intel_dpll_mgr.h for the DPLL IDs, but at least the surface is smaller. Add duplicate defines of pipe_name() and port_name() to avoid depending on display. They're trivial enough to be acceptable. Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/2fa5677f5ff3dbeaa75a7984d74fb9855a4ba3d2.1769612208.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
a9ec4e6e7b
commit
581e9a471a
|
|
@ -46,10 +46,10 @@
|
|||
#include "display/intel_crt_regs.h"
|
||||
#include "display/intel_cursor_regs.h"
|
||||
#include "display/intel_display_regs.h"
|
||||
#include "display/intel_display_types.h"
|
||||
#include "display/intel_dmc_regs.h"
|
||||
#include "display/intel_dp_aux_regs.h"
|
||||
#include "display/intel_dpio_phy.h"
|
||||
#include "display/intel_dpll_mgr.h"
|
||||
#include "display/intel_fbc.h"
|
||||
#include "display/intel_fdi_regs.h"
|
||||
#include "display/intel_pps_regs.h"
|
||||
|
|
@ -79,6 +79,9 @@
|
|||
#define PCH_PP_OFF_DELAYS _MMIO(0xc720c)
|
||||
#define PCH_PP_DIVISOR _MMIO(0xc7210)
|
||||
|
||||
#define pipe_name(p) ((p) + 'A')
|
||||
#define port_name(p) ((p) + 'A')
|
||||
|
||||
unsigned long intel_gvt_get_device_type(struct intel_gvt *gvt)
|
||||
{
|
||||
struct drm_i915_private *i915 = gvt->gt->i915;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user