Commit 2cc8376f authored by Jani Nikula's avatar Jani Nikula

drm/i915: rename dev_priv info to __info to avoid usage

Encourage use of INTEL_INFO() to access dev_priv->info to not accumulate
more direct users of ->info, making further changes easier.

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5f5d81880046331f77624d00278528abc1cf30c6.1546267488.git.jani.nikula@intel.com
parent 1787a984
...@@ -1431,7 +1431,7 @@ struct drm_i915_private { ...@@ -1431,7 +1431,7 @@ struct drm_i915_private {
struct kmem_cache *dependencies; struct kmem_cache *dependencies;
struct kmem_cache *priorities; struct kmem_cache *priorities;
const struct intel_device_info info; const struct intel_device_info __info; /* Use INTEL_INFO() to access. */
struct intel_runtime_info __runtime; /* Use RUNTIME_INFO() to access. */ struct intel_runtime_info __runtime; /* Use RUNTIME_INFO() to access. */
struct intel_driver_caps caps; struct intel_driver_caps caps;
...@@ -2192,13 +2192,7 @@ static inline unsigned int i915_sg_segment_size(void) ...@@ -2192,13 +2192,7 @@ static inline unsigned int i915_sg_segment_size(void)
return size; return size;
} }
static inline const struct intel_device_info * #define INTEL_INFO(dev_priv) (&(dev_priv)->__info)
intel_info(const struct drm_i915_private *dev_priv)
{
return &dev_priv->info;
}
#define INTEL_INFO(dev_priv) intel_info((dev_priv))
#define RUNTIME_INFO(dev_priv) (&(dev_priv)->__runtime) #define RUNTIME_INFO(dev_priv) (&(dev_priv)->__runtime)
#define DRIVER_CAPS(dev_priv) (&(dev_priv)->caps) #define DRIVER_CAPS(dev_priv) (&(dev_priv)->caps)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment