]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/fb-helper: Remove unnecessary include statements
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 3 Nov 2022 15:14:45 +0000 (16:14 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 5 Nov 2022 16:12:04 +0000 (17:12 +0100)
Remove include statements for <drm/drm_fb_helper.h> where it is not
required (i.e., most of them). In a few places include other header
files that are required by the source code.

v3:
* fix amdgpu include statements
* fix rockchip include statements

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221103151446.2638-23-tzimmermann@suse.de
31 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
drivers/gpu/drm/arm/hdlcd_crtc.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/bridge/tc358762.c
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_gem_framebuffer_helper.c
drivers/gpu/drm/drm_probe_helper.c
drivers/gpu/drm/etnaviv/etnaviv_drv.h
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
drivers/gpu/drm/imx/imx-ldb.c
drivers/gpu/drm/imx/imx-tve.c
drivers/gpu/drm/imx/parallel-display.c
drivers/gpu/drm/kmb/kmb_plane.c
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/rockchip/rockchip_drm_drv.h
drivers/gpu/drm/rockchip/rockchip_drm_gem.c
drivers/gpu/drm/tidss/tidss_kms.c
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/vboxvideo/vbox_main.c
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/xen/xen_drm_front_gem.c

index 491d4846fc02c8130c879348d282973acebc5900..e1320edfc527437f576d22f316764ffe5fbf1442 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <drm/display/drm_dp_helper.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/amdgpu_drm.h>
 #include "amdgpu.h"
index e0445e8cc342498140b67e5c5401f4b428a6c397..cc65df9f241964fb8b852063386ec85c0acc254e 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/pci-p2pdma.h>
 
 #include <drm/drm_atomic_helper.h>
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/amdgpu_drm.h>
 #include <linux/vgaarb.h>
index dd6f9ae6fbe9ff1ccde4b613e6c36892ef454fce..311a8ea6f06545f9bd12cb71e8f7744d55c2793d 100644 (file)
@@ -39,8 +39,8 @@
 #include <linux/pm_runtime.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_fb_helper.h>
+#include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_vblank.h>
 
index fe23e09eec985ca291f57edfc9c183cc8928182c..b495eff635a329d00aabfc8a1ee6267e6f307c7e 100644 (file)
@@ -29,6 +29,7 @@
 #include "amdgpu.h"
 #include <drm/amdgpu_drm.h>
 #include <drm/drm_drv.h>
+#include <drm/drm_fb_helper.h>
 #include "amdgpu_uvd.h"
 #include "amdgpu_vce.h"
 #include "atom.h"
index 37322550d75086f2f740059b03c561e6ea8774a8..8a39300b1a845c34d89154c5fa98dec996d94734 100644 (file)
@@ -36,7 +36,6 @@
 #include <drm/drm_encoder.h>
 #include <drm/drm_fixed.h>
 #include <drm/drm_crtc_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_probe_helper.h>
 #include <linux/i2c.h>
index 05051d5d2ec31102ce3bad7fcba18127eb2c3ddc..90f87b2d985b55c221aa550b881e0e2214dadc23 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_vblank.h>
 
index c928bc9eb2026bd0d42f784ef15d977e97de77c4..0352de72c886ac09b278f580e27749301fe24966 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_vblank.h>
 
index 62315fd5a05f2f75d0f0b7b89abfea77bcc627c3..07bd16e820461d4b12abfcd3840b99b1d89c40cf 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <linux/pci.h>
 
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_vblank.h>
 
index 87d5e4c21cb37d0142418dd0091807f0b5fb3b64..d73df100f2b3bf20e80e7c3130f97f051c1eba74 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_vblank.h>
 
index 7030339fa2323642421b43c98d8a970a63b42ed5..ddbe1dd2d44ef627de3c0e14457f08ca6fff6a18 100644 (file)
@@ -19,7 +19,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_fb_dma_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_dma_helper.h>
 #include <drm/drm_of.h>
index 74f41282444f6402a202448f2e412542f3ea03ab..d51b81fea9c80b5c69fdbfc0ffc9e44a4621ace4 100644 (file)
@@ -38,7 +38,6 @@
 #include <drm/drm_encoder.h>
 #include <drm/drm_mode.h>
 #include <drm/drm_framebuffer.h>
-#include <drm/drm_fb_helper.h>
 
 #define DRIVER_AUTHOR          "Dave Airlie"
 
index 7f4fce1aa998886100918c04190afa775797fab2..0b6a284368859817d4012756bbd667ab8be61e5e 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/delay.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/of_graph.h>
 #include <linux/regulator/consumer.h>
@@ -19,7 +20,6 @@
 
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_of.h>
 #include <drm/drm_panel.h>
index f5fb22e0d0337301af71dabba54ac91cd8f0e766..a209659a996c74b9d4beeb98e8590bd95573872b 100644 (file)
@@ -43,7 +43,6 @@
 #include <drm/drm_drv.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_print.h>
index e35e224e6303a28fc0af4a8f9dc65351470b743f..e93533b86037fb216383a25ee005373183b2ccb3 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/module.h>
 
 #include <drm/drm_damage_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem.h>
index 2fc21df709bcbb821a18e0c9f305618f5447048b..bcd9611dabfd96b8586c3aed9ead5141a1daec26 100644 (file)
@@ -36,7 +36,6 @@
 #include <drm/drm_client.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_modeset_helper_vtables.h>
 #include <drm/drm_print.h>
index f32f4771dada7f0773442b0eb33b26add7b202f3..2bb4c25565dcb14f7c57a196398c60788f031770 100644 (file)
@@ -6,13 +6,14 @@
 #ifndef __ETNAVIV_DRV_H__
 #define __ETNAVIV_DRV_H__
 
+#include <linux/io.h>
 #include <linux/list.h>
 #include <linux/mm_types.h>
 #include <linux/sizes.h>
 #include <linux/time64.h>
 #include <linux/types.h>
 
-#include <drm/drm_fb_helper.h>
+#include <drm/drm_drv.h>
 #include <drm/drm_gem.h>
 #include <drm/etnaviv_drm.h>
 #include <drm/gpu_scheduler.h>
index 4a0cd22c10e211d60b4ae6aca70a7527125a8284..f957552c6c50785734521a38a79c95858fb0ef3f 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/i2c.h>
 
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_framebuffer.h>
 
 struct hibmc_connector {
index 28e732f94bf2f4d4160b46c42f41d68bd8fa6b35..6c6b5729879734dd1c2843b2bc8610755dea5a2d 100644 (file)
@@ -8,7 +8,6 @@
 #include <drm/drm_damage_helper.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_format_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
index 41799011f73b6024a1a0a6eb1f9cca21e0252fb8..c45fc8f4744d01715425cb6d0e8af8f8aa217dac 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/clk.h>
 #include <linux/component.h>
+#include <linux/i2c.h>
 #include <linux/media-bus-format.h>
 #include <linux/mfd/syscon.h>
 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
@@ -23,7 +24,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_managed.h>
 #include <drm/drm_of.h>
 #include <drm/drm_panel.h>
index 6b34fac3f73a0a50a525c4ec72692d19e7a7ebbe..d64ebd2cf15e8d96834dd0b32cb0590bb459e9ae 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_managed.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_simple_kms_helper.h>
index 06723b2e9b84785343939542f3cdf81a7249553e..0fa0b590830b6642b1e13d3facdaf9e6a3d033bd 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/component.h>
 #include <linux/media-bus-format.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/videodev2.h>
 
@@ -16,7 +17,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.h>
 #include <drm/drm_edid.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_managed.h>
 #include <drm/drm_of.h>
 #include <drm/drm_panel.h>
index a42f63f6f95737d7a1a6fd0eb3bf12e9acd1b925..d172a302f902404405ff730414e42d3225cf4231 100644 (file)
@@ -9,7 +9,6 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_fb_dma_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_dma_helper.h>
index f0c2349404b46edf2adf20a84ef82751c2ae0b16..9e604dbb8e44820acf3373abb6d4253a5d45cfac 100644 (file)
@@ -18,7 +18,6 @@
 #include <drm/drm_connector.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_gem.h>
 #include <drm/drm_gem_shmem_helper.h>
 #include <drm/drm_plane.h>
index 432758ad39a35fb0fe4fa293d3f1ea8d25311807..76f060810f63470c7ed13f5a2fd12e135407b4f0 100644 (file)
@@ -38,7 +38,6 @@
 
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_gem_ttm_helper.h>
 #include <drm/drm_ioctl.h>
 #include <drm/drm_gem.h>
index 1641440837af52954074ebb32ddb074864291e3f..aeb03a57240fd9fb704858e4915e2aa139264484 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef _ROCKCHIP_DRM_DRV_H
 #define _ROCKCHIP_DRM_DRV_H
 
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_gem.h>
 
+#include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/component.h>
 
index 614e97aaac805464205473b2320dc573349d1b1a..bf1120e0f57381b64055e8f1d48319f37701d085 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/vmalloc.h>
 
 #include <drm/drm.h>
+#include <drm/drm_fb_helper.h>
 #include <drm/drm_gem.h>
 #include <drm/drm_gem_dma_helper.h>
 #include <drm/drm_prime.h>
index afb2879980c6c8c252ddbc8e2b0c5c340448174d..345bcc3011e4f945b9ae7fecc45c787fb3bfd0d0 100644 (file)
@@ -10,7 +10,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.h>
 #include <drm/drm_crtc_helper.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_of.h>
 #include <drm/drm_panel.h>
index e8c975b8158592233e7e4972fac71eac728a9d6d..478f1f0f60dec2d4d5b911abf3b1b4da2b930cfb 100644 (file)
@@ -22,7 +22,6 @@
 #include <linux/reset.h>
 
 #include <drm/drm_drv.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_managed.h>
 #include <uapi/drm/v3d_drm.h>
 
index c9e8b3a63c6212050e19e3d7bc57111d85d6c56e..3b83e550f4df52c378120148bd103c1857e16269 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/pci.h>
 #include <linux/vbox_err.h>
 
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_damage_helper.h>
 
index 9b98470593b0607324dca739f994fa4ca04bb158..b7a64c7dcc2c93e17a123fb30de8d2643df8e212 100644 (file)
@@ -35,7 +35,6 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem.h>
index e31554d7139f194b08c5d72a96e32f289aa145e8..4c95ebcdcc2d3338f2c5e1e34228ed7c4f723d11 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/scatterlist.h>
 #include <linux/shmem_fs.h>
 
-#include <drm/drm_fb_helper.h>
 #include <drm/drm_gem.h>
 #include <drm/drm_prime.h>
 #include <drm/drm_probe_helper.h>