drm/display: Introduce a DRM display-helper module
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 21 Apr 2022 07:31:03 +0000 (09:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 25 Apr 2022 09:19:21 +0000 (11:19 +0200)
commit1e0f66420b13fdd45754be0f15220a9185d59aa4
tree3e0b4ea4314c89982db6450be6cb5ee11a5a0db5
parentda68386d9edb1f57abf886febe5c5169ebd4d2c9
drm/display: Introduce a DRM display-helper module

Replace the DP-helper module with a display-helper module. The
support for DisplayPort becomes an internal option that drivers
have to select. Update all related Kconfig and Makefile rules.

Besides the existing code for DisplayPort, the new module will
contain helpers for other video-output standards, such as HDMI.
Drivers will have to select their required video-output helpers.

Linking all display-related code into a single module avoids the
proliferation of small kernel modules.

The module parameters drm_dp_cec_unregister_delay, dp_aux_i2c_speed_khz,
and dp_aux_i2c_transfer_size are moving from the drm_dp_helper namespace
to drm_display_helper.

v2:
* mention module parameters in commit message (Javier)
* distiguish between display module and DP support in Kconfig
* update Makefile rules for DP helpers
* move Kconfig rules into separate file under display/

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421073108.19226-4-tzimmermann@suse.de
18 files changed:
drivers/gpu/drm/Kconfig
drivers/gpu/drm/bridge/Kconfig
drivers/gpu/drm/bridge/analogix/Kconfig
drivers/gpu/drm/bridge/cadence/Kconfig
drivers/gpu/drm/display/Kconfig [new file with mode: 0644]
drivers/gpu/drm/display/Makefile
drivers/gpu/drm/display/drm_display_helper_mod.c [new file with mode: 0644]
drivers/gpu/drm/display/drm_dp.c [deleted file]
drivers/gpu/drm/display/drm_dp_helper.c [new file with mode: 0644]
drivers/gpu/drm/display/drm_dp_helper_mod.c [deleted file]
drivers/gpu/drm/exynos/Kconfig
drivers/gpu/drm/i915/Kconfig
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/nouveau/Kconfig
drivers/gpu/drm/panel/Kconfig
drivers/gpu/drm/rockchip/Kconfig
drivers/gpu/drm/tegra/Kconfig
drivers/gpu/drm/xlnx/Kconfig