]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always use INTEL_INFO() to access the device_info structure
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 7 Feb 2014 19:12:47 +0000 (19:12 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 17:52:50 +0000 (18:52 +0100)
commit444c6f5590f7e381a018e7b677f8da64322301e3
treede625e9ebc7d5b6f434c4ab0ce0ed1b48175dc8d
parent7e8dafe932117931f53c5cdd01d9b8b0feed708a
drm/i915: Always use INTEL_INFO() to access the device_info structure

If we make sure that all the dev_priv->info usages are wrapped by
INTEL_INFO(), we can easily modify the ->info field to be structure and
not a pointer while keeping the const protection in the INTEL_INFO()
macro.

v2: Rebased onto latest drm-nightly

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_pm.c