]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/tegra: include drm/drm_edid.h only where needed
authorJani Nikula <jani.nikula@intel.com>
Wed, 13 Dec 2023 10:19:51 +0000 (12:19 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2023 17:21:32 +0000 (18:21 +0100)
Reduce the need for rebuilds when drm_edid.h is modified by including it
only where needed.

v2: Fix build (kernel test robot <lkp@intel.com>)

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231213101951.3932273-1-jani.nikula@intel.com
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/output.c
drivers/gpu/drm/tegra/sor.c

index ccb5d74fa227076e978fcca1f4245cff7ba29b37..682011166a8f67caf43b8edb56b7b91c481e2933 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <drm/drm_atomic.h>
 #include <drm/drm_bridge.h>
-#include <drm/drm_edid.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_fixed.h>
 #include <drm/drm_probe_helper.h>
@@ -26,6 +25,7 @@
 /* XXX move to include/uapi/drm/drm_fourcc.h? */
 #define DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT BIT_ULL(22)
 
+struct edid;
 struct reset_control;
 
 struct tegra_drm {
index dc2dcb5ca1c894ce384eec832c917196ba5c7aed..88af956ad0e77f9c646ec2ccdd406cac58f20b37 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/of.h>
 
 #include <drm/drm_atomic_helper.h>
+#include <drm/drm_edid.h>
 #include <drm/drm_of.h>
 #include <drm/drm_panel.h>
 #include <drm/drm_simple_kms_helper.h>
index 83341576630d8fc0de45ab5bd8f6031719aba8a4..bad3b8fcc72692eaf89fe82e1a0c70abc00a6b79 100644 (file)
@@ -20,6 +20,7 @@
 #include <drm/display/drm_scdc_helper.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_debugfs.h>
+#include <drm/drm_edid.h>
 #include <drm/drm_eld.h>
 #include <drm/drm_file.h>
 #include <drm/drm_panel.h>