drm: Remove linux/i2c.h from drm_crtc.h
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 30 Jun 2022 19:51:14 +0000 (22:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Jul 2022 18:15:23 +0000 (21:15 +0300)
drm_crtc.h has no need for linux/i2c.h, so don't include it.
Avoids useless rebuilds of the entire universe when
touching linux/i2c.h.

Quite a few placs do currently depend on linux/i2c.h without
actually including it directly. All of those need to be
fixed up.

v2: imx and mcde need linux/io.h for readl()/etc.

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220630195114.17407-5-ville.syrjala@linux.intel.com
13 files changed:
drivers/gpu/drm/bridge/chrontel-ch7033.c
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c
drivers/gpu/drm/bridge/lontium-lt9611.c
drivers/gpu/drm/bridge/lontium-lt9611uxc.c
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
drivers/gpu/drm/exynos/exynos_dp.c
drivers/gpu/drm/i2c/tda998x_drv.c
drivers/gpu/drm/mcde/mcde_clk_div.c
drivers/gpu/drm/panel/panel-simple.c
drivers/gpu/drm/sti/sti_hdmi.c
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
include/drm/drm_crtc.h
include/drm/drm_encoder_slave.h

index 486f405c2e1648ed50aa72d2bd40887084ce3485..ba060277c3fdfbf933f5cb090e37f92412c104e3 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/gpio/consumer.h>
+#include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/regmap.h>
 
index 682ae0c737226d251ad0b91797e08dcf9b014a0d..503bd8db8afed39691a1ee621b76c5a27cfd0b0b 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/bitfield.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
+#include <linux/io.h>
 #include <linux/media-bus-format.h>
 #include <linux/module.h>
 #include <linux/of.h>
index 585506eae10c058d1b98210a7222aea14fa41781..8a60e83482a045082670fbd496610c17bc6c1b1e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/gpio/consumer.h>
+#include <linux/i2c.h>
 #include <linux/interrupt.h>
 #include <linux/media-bus-format.h>
 #include <linux/module.h>
index 310b3b1944919e0bdf2b3f6009c84cd0a41468b9..fdf12d4c6416021102be5cc71ebccefd30e5985c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <linux/firmware.h>
 #include <linux/gpio/consumer.h>
+#include <linux/i2c.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
index 3e1be9894ed178356e88092532924cbf03cfe559..25a60eb4d67c75966c5e5c43f476317017212978 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/hdmi.h>
+#include <linux/i2c.h>
 #include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
index 27664f663c5a8224aa11e5725bc4cb7afcf10c7f..4e3d3d5f686607235653bd65862ba7c32ff062d3 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/component.h>
 #include <linux/err.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_graph.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
index b7ec6c374fbda29784b4622b505fc97a39f06d62..7c4455541dbb31892bd52c9e017140f8f63d7228 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/component.h>
 #include <linux/gpio/consumer.h>
 #include <linux/hdmi.h>
+#include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/platform_data/tda9950.h>
 #include <linux/irq.h>
index 038821d2ef8044ba1f2ae61636f22ed04ab30da7..3056ac566473487817b40f8b9b3146dbba2ae81c 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/clk-provider.h>
+#include <linux/io.h>
 #include <linux/regulator/consumer.h>
 
 #include "mcde_drm.h"
index d8beafc2740680bd7e53f9cdef362365f0eea98c..ff5e1a44c43a513a7e8f46a63a914e952ca1f8c6 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
+#include <linux/i2c.h>
 #include <linux/media-bus-format.h>
 #include <linux/module.h>
 #include <linux/of_platform.h>
index b3fbee7eac114960869d90c52061d15f8de337be..61a034a0176448bf257228354fe280547eee4b41 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/component.h>
 #include <linux/debugfs.h>
 #include <linux/hdmi.h>
+#include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/platform_device.h>
index d8b71710e8f669a9d54336980df93e59c9e1add2..c0df5e892fa7e0b251d892fc8a0b974448b3ae96 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/clk.h>
 #include <linux/component.h>
+#include <linux/i2c.h>
 #include <linux/iopoll.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
index a583669eb443fd9177140dd171b15fba6777e53b..ffc1cde331d3e6aeecb38cc74c83f569ae3b98ff 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef __DRM_CRTC_H__
 #define __DRM_CRTC_H__
 
-#include <linux/i2c.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>
 #include <drm/drm_modeset_lock.h>
index a09864f6d68489f09101c4395a8a7eaee10d9ae0..7214101fd731dbb38a9c54278e22e2dbeb882934 100644 (file)
@@ -27,6 +27,8 @@
 #ifndef __DRM_ENCODER_SLAVE_H__
 #define __DRM_ENCODER_SLAVE_H__
 
+#include <linux/i2c.h>
+
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>