Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dpt: remove display/intel_dpt.h

The remaining functions declared in intel_dpt.h are i915 specific, and
so are the users, so we can move them to i915_dpt.h. There are some
useless intel_dpt.h includes around that we can remove.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patch.msgid.link/de16eddbb49110b56ff44899d9498e3081da91fa.1772030909.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+12 -23
-1
drivers/gpu/drm/i915/display/intel_display.c
··· 84 84 #include "intel_dp_tunnel.h" 85 85 #include "intel_dpll.h" 86 86 #include "intel_dpll_mgr.h" 87 - #include "intel_dpt.h" 88 87 #include "intel_dpt_common.h" 89 88 #include "intel_drrs.h" 90 89 #include "intel_dsb.h"
-19
drivers/gpu/drm/i915/display/intel_dpt.h
··· 1 - /* SPDX-License-Identifier: MIT */ 2 - /* 3 - * Copyright © 2021 Intel Corporation 4 - */ 5 - 6 - #ifndef __INTEL_DPT_H__ 7 - #define __INTEL_DPT_H__ 8 - 9 - #include <linux/types.h> 10 - 11 - struct i915_address_space; 12 - struct i915_vma; 13 - 14 - struct i915_vma *intel_dpt_pin_to_ggtt(struct i915_address_space *vm, 15 - unsigned int alignment); 16 - void intel_dpt_unpin_from_ggtt(struct i915_address_space *vm); 17 - u64 intel_dpt_offset(struct i915_vma *dpt_vma); 18 - 19 - #endif /* __INTEL_DPT_H__ */
+1 -1
drivers/gpu/drm/i915/display/intel_fb_pin.c
··· 17 17 #include "intel_display_core.h" 18 18 #include "intel_display_rpm.h" 19 19 #include "intel_display_types.h" 20 - #include "intel_dpt.h" 20 + #include "i915_dpt.h" 21 21 #include "intel_fb.h" 22 22 #include "intel_fb_pin.h" 23 23 #include "intel_plane.h"
-1
drivers/gpu/drm/i915/display/skl_universal_plane.c
··· 17 17 #include "intel_display_regs.h" 18 18 #include "intel_display_types.h" 19 19 #include "intel_display_utils.h" 20 - #include "intel_dpt.h" 21 20 #include "intel_fb.h" 22 21 #include "intel_fbc.h" 23 22 #include "intel_frontbuffer.h"
+1 -1
drivers/gpu/drm/i915/i915_dpt.c
··· 8 8 9 9 #include "display/intel_display_core.h" 10 10 #include "display/intel_display_rpm.h" 11 - #include "display/intel_dpt.h" 12 11 #include "gem/i915_gem_domain.h" 13 12 #include "gem/i915_gem_internal.h" 14 13 #include "gem/i915_gem_lmem.h" 15 14 #include "gt/gen8_ppgtt.h" 16 15 16 + #include "i915_dpt.h" 17 17 #include "i915_drv.h" 18 18 19 19 struct i915_dpt {
+10
drivers/gpu/drm/i915/i915_dpt.h
··· 4 4 #ifndef __I915_DPT_H__ 5 5 #define __I915_DPT_H__ 6 6 7 + #include <linux/types.h> 8 + 9 + struct i915_address_space; 10 + struct i915_vma; 11 + 12 + struct i915_vma *intel_dpt_pin_to_ggtt(struct i915_address_space *vm, 13 + unsigned int alignment); 14 + void intel_dpt_unpin_from_ggtt(struct i915_address_space *vm); 15 + u64 intel_dpt_offset(struct i915_vma *dpt_vma); 16 + 7 17 extern const struct intel_display_dpt_interface i915_display_dpt_interface; 8 18 9 19 #endif /* __I915_DPT_H__ */