drm/i915/display: Add framework to add parameters specific to display
authorJouni Högander <jouni.hogander@intel.com>
Tue, 24 Oct 2023 12:40:47 +0000 (15:40 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 26 Oct 2023 09:13:02 +0000 (12:13 +0300)
commit8015bee0bfec6920f2441e5adc77e6ac2b65be8b
tree5d2bd6d3d3dc481946c9835fa757d9d2b98d3cfe
parentbc725dc1a8317abb2403b3a906106dbe0d4d4422
drm/i915/display: Add framework to add parameters specific to display

Currently all module parameters are handled by i915_param.c/h. This
is a problem for display parameters when Xe driver is used. Add
a mechanism to add parameters specific to the display. This is mainly
copied from i915_[debugfs]_params.[ch]. Parameters are not yet moved. This
is done by subsequent patches.

v2:
  - Drop unused predefinition (dentry)
  - Clarify need for empty INTEL_DISPLAY_PARAMS_FOR_EACH in comment

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231024124109.384973-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_core.h
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_debugfs_params.h [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/i915/display/intel_display_params.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_params.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_driver.c