OSDN Git Service

drm/i915/display: convert dp_to_i915() to a macro
authorJani Nikula <jani.nikula@intel.com>
Wed, 1 Dec 2021 13:57:11 +0000 (15:57 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 3 Dec 2021 09:39:14 +0000 (11:39 +0200)
commit726a2d779f0ede31c4739456df1a7a69d10c2a0e
tree168cc6138c8c478fd91403db5185119822c4d6df
parent5734c1774d8f32ea814c2904feae29b4582dd219
drm/i915/display: convert dp_to_i915() to a macro

Avoid looking into the guts of struct drm_i915_private in
headers. Again, converting an inline function to a macro is less than
ideal, but avoids having to pull in i915_drv.h just for the to_i915()
part.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ed6c43455d13c90ebfed442b196625af5e6ede88.1638366969.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h