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/xe: remove remaining platform checks from compat i915_drv.h

With xe no longer building anything from soc/, we can remove the compat
platform checks from i915_drv.h, reducing the file to just the to_i915()
pointer conversion helper.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/a9947337f81e04db342bae6af727e4f75f9818ae.1763578288.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

-15
-15
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
··· 19 19 return container_of(dev, struct drm_i915_private, drm); 20 20 } 21 21 22 - /* compat platform checks only for soc/ usage */ 23 - #define IS_PLATFORM(xe, x) ((xe)->info.platform == x) 24 - #define IS_I915G(dev_priv) (dev_priv && 0) 25 - #define IS_I915GM(dev_priv) (dev_priv && 0) 26 - #define IS_PINEVIEW(dev_priv) (dev_priv && 0) 27 - #define IS_VALLEYVIEW(dev_priv) (dev_priv && 0) 28 - #define IS_CHERRYVIEW(dev_priv) (dev_priv && 0) 29 - #define IS_HASWELL(dev_priv) (dev_priv && 0) 30 - #define IS_BROADWELL(dev_priv) (dev_priv && 0) 31 - #define IS_BROXTON(dev_priv) (dev_priv && 0) 32 - #define IS_GEMINILAKE(dev_priv) (dev_priv && 0) 33 - #define IS_DG2(dev_priv) IS_PLATFORM(dev_priv, XE_DG2) 34 - 35 - #define IS_MOBILE(xe) (xe && 0) 36 - 37 22 #endif