mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
drm/xe: remove compat i915_drv.h and -Ddrm_i915_private=xe_device hack
The xe display build no longer needs the compat i915_drv.h or the ugly -Ddrm_i915_private=xe_device hack. Remove them, with great pleasure. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patch.msgid.link/8d2da5404439ed334d7682922b599f36eeb60e9d.1767009044.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
aae766f5d3
commit
51489bae20
|
|
@ -196,8 +196,7 @@ endif
|
|||
# i915 Display compat #defines and #includes
|
||||
subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
|
||||
-I$(src)/compat-i915-headers \
|
||||
-I$(srctree)/drivers/gpu/drm/i915/display/ \
|
||||
-Ddrm_i915_private=xe_device
|
||||
-I$(srctree)/drivers/gpu/drm/i915/display/
|
||||
|
||||
# Rule to build display code shared with i915
|
||||
$(obj)/i915-display/%.o: $(srctree)/drivers/gpu/drm/i915/display/%.c FORCE
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
#ifndef _XE_I915_DRV_H_
|
||||
#define _XE_I915_DRV_H_
|
||||
|
||||
/*
|
||||
* "Adaptation header" to allow i915 display to also build for xe driver.
|
||||
* TODO: refactor i915 and xe so this can cease to exist
|
||||
*/
|
||||
|
||||
#include <drm/drm_drv.h>
|
||||
|
||||
#include "xe_device_types.h"
|
||||
|
||||
static inline struct drm_i915_private *to_i915(const struct drm_device *dev)
|
||||
{
|
||||
return container_of(dev, struct drm_i915_private, drm);
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user