Skip to content

Commit 390fa93

Browse files
committed
drm/xe/display: remove unused compat kdev_to_i915() and pdev_to_i915()
The display code no longer uses kdev_to_i915() or pdev_to_i915() helpers. Remove them. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/05b948f9012fc7c0b97d567c70b0bac8791d554a.1724942754.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 8906064 commit 390fa93

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ static inline struct drm_i915_private *to_i915(const struct drm_device *dev)
2121
return container_of(dev, struct drm_i915_private, drm);
2222
}
2323

24-
static inline struct drm_i915_private *kdev_to_i915(struct device *kdev)
25-
{
26-
struct drm_device *drm = dev_get_drvdata(kdev);
27-
28-
return drm ? to_i915(drm) : NULL;
29-
}
30-
3124
#define IS_PLATFORM(xe, x) ((xe)->info.platform == x)
3225
#define INTEL_INFO(dev_priv) (&((dev_priv)->info))
3326
#define IS_I830(dev_priv) (dev_priv && 0)
@@ -112,8 +105,6 @@ struct i915_sched_attr {
112105
};
113106
#define i915_gem_fence_wait_priority(fence, attr) do { (void) attr; } while (0)
114107

115-
#define pdev_to_i915 pdev_to_xe_device
116-
117108
#define FORCEWAKE_ALL XE_FORCEWAKE_ALL
118109

119110
#ifdef CONFIG_ARM64

0 commit comments

Comments
 (0)