drm/i915/display: start high level display driver file
authorJani Nikula <jani.nikula@intel.com>
Fri, 14 Apr 2023 09:41:54 +0000 (12:41 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 17 Apr 2023 08:16:52 +0000 (11:16 +0300)
commit77316e7552137e1ed1ac3d719be844f36756eb1c
tree0c3cfc278739ff703a4ba311eafebb2c83f58d03
parentae52dd7d6d933511c90d129addfc629feff147b5
drm/i915/display: start high level display driver file

The only way to truly clean up intel_display.[ch] is to move stuff out
of them until there's absolutely nothing left.

Start moving the high level display driver entry points, i.e. functions
called from top level driver code only, to a new file, which we'll call
intel_display_driver.c. The intention is that there's no low-level
display code or details here. This is an in-between layer.

Initially, move intel_display_driver_register() and
intel_display_driver_unregister() there.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e42cc037881a4c6042948a34bd4a9698f9e8487c.1681465222.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_driver.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_driver.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_driver.c