• Jani Nikula's avatar
    drm/i915/display: add intel_display_limits.h for key enums · acc855d3
    Jani Nikula authored
    
    
    Move a handful of key enums to a new file intel_display_limits.h. These
    are the enum types, and the MAX/NUM enumerations within them, that are
    used in other headers. Otherwise, there's no common theme between them.
    
    Replace intel_display.h include with intel_display_limit.h where
    relevant, and add the intel_display.h include directly in the .c files
    where needed.
    
    Since intel_display.h is used almost everywhere in display/, include it
    from intel_display_types.h to avoid massive changes across the
    board. There are very few files that would need intel_display_types.h
    but not intel_display.h so this is neglible, and further cleanup between
    these headers can be left for the future.
    
    Overall this change drops the direct and indirect dependencies on
    intel_display.h from about 300 to about 100 compilation units, because
    we can drop the include from i915_drv.h.
    Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
    Reviewed-by: Rodrigo Vivi <rodrigo.vivi@int...
    acc855d3
fb_decoder.h 5.88 KB