Skip to contentSkip to conversation

drm: Trivial include fixes

PATCH In review Thomas Zimmermann 3 participants 14 messages Oct 11, 2024 – Dec 13, 2024

Subsystems (5)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

cover drm: Trivial include fixes

Fix several proxy includes related to <linux/backlight.h>, which in turn includes <linux/fb.h>. This includes several more headers that declare interfaces used by drivers. As backlight.h is expected to not refer to fb.h soon, resolve the proxy includes by including required header files directly.

Thomas Zimmermann (6):
drm/fsl-dcu: Include <linux/of.h>
drm/panel: Include <linux/of.h>
drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h> drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h> drm/panel: panel-samsung-s6e63m0: Include <linux/property.h> drm/tiny: panel-mipi-dbi: Include <linux/of.h>

 drivers/gpu/drm/drm_panel.c                      | 1 +
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c        | 1 +
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 +
 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 +
 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c    | 1 +
 drivers/gpu/drm/tiny/panel-mipi-dbi.c            | 1 +
 6 files changed, 6 insertions(+)
Signature · 1 line
2.46.0
author maintainer
#1 lore raw

PATCH 1/6 drm/fsl-dcu: Include <linux/of.h>

Include <linux/of.h> directly to get of_parse_phandle(). Avoids the proxy include via <linux/backlight.h>

---
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1 -0
index 2c2b92324a2e..c418e8496bdf 100644
@@ -6,6 +6,7 @@
  */
 
 #include <linux/backlight.h>
+#include <linux/of.h>
 #include <linux/of_graph.h>
 
 #include <drm/drm_atomic_helper.h>
Signature · 1 line
2.46.0
author maintainer
#2 lore raw

Re: [PATCH 1/6] drm/fsl-dcu: Include <linux/of.h>

ping

Am 11.10.24 um 16:41 schrieb Thomas Zimmermann:

Quoted 22 lines

Include <linux/of.h> directly to get of_parse_phandle(). Avoids the proxy include via <linux/backlight.h>

---
  drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1 -0
index 2c2b92324a2e..c418e8496bdf 100644
@@ -6,6 +6,7 @@
   */
 
  #include <linux/backlight.h>
+#include <linux/of.h>
  #include <linux/of_graph.h>
 
  #include <drm/drm_atomic_helper.h>
Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
author maintainer
#3 lore raw

Re: [PATCH 1/6] drm/fsl-dcu: Include <linux/of.h>

In reply to Thomas Zimmermann

Am 11.10.24 um 16:41 schrieb Thomas Zimmermann:

Quoted 6 lines

Include <linux/of.h> directly to get of_parse_phandle(). Avoids the proxy include via <linux/backlight.h>

R-b'ed by Javier via irc

https://dri.freedesktop.org/~cbrill/dri-log/index.php?channel=dri-devel&date=2024-12-13

Quoted 16 lines
---
  drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1 -0
index 2c2b92324a2e..c418e8496bdf 100644
@@ -6,6 +6,7 @@
   */
 
  #include <linux/backlight.h>
+#include <linux/of.h>
  #include <linux/of_graph.h>
 
  #include <drm/drm_atomic_helper.h>
Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
author maintainer
#4 lore raw

PATCH 2/6 drm/panel: Include <linux/of.h>

In reply to Thomas Zimmermann

Include <linux/of.h> directly to get of_device_is_available(). Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
 drivers/gpu/drm/drm_panel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_panel.c +1 -0
index 19ab0a794add..2379e501c08b 100644
@@ -24,6 +24,7 @@
 #include <linux/backlight.h>
 #include <linux/err.h>
 #include <linux/module.h>
+#include <linux/of.h>
 
 #include <drm/drm_crtc.h>
 #include <drm/drm_panel.h>
Signature · 1 line
2.46.0
maintainer Reviewed-by on v1 2/6
#5 lore raw

Re: [PATCH 2/6] drm/panel: Include <linux/of.h>

Quoted 15 lines · Thomas Zimmermann

Include <linux/of.h> directly to get of_device_is_available(). Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
  drivers/gpu/drm/drm_panel.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_panel.c +0 -0
index 19ab0a794add..2379e501c08b 100644

drivers/gpu/drm/drm_panel.c line 30

Quoted 7 lines
drivers/gpu/drm/drm_panel.c +1 -0
@@ -24,6 +24,7 @@
  #include <linux/backlight.h>
  #include <linux/err.h>
  #include <linux/module.h>
+#include <linux/of.h>
 
  #include <drm/drm_crtc.h>
  #include <drm/drm_panel.h>
author maintainer
#6 lore raw

PATCH 3/6 drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h>

In reply to Thomas Zimmermann

Include <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1 -0
index a9b5dad70bc1..87bbb25d119a 100644
@@ -9,6 +9,7 @@
 #include <linux/backlight.h>
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/regulator/consumer.h>
 
Signature · 1 line
2.46.0
maintainer Reviewed-by on v1 3/6
#7 lore raw

Re: [PATCH 3/6] drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h>

Quoted 15 lines · Thomas Zimmermann

Include <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
  drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +0 -0
index a9b5dad70bc1..87bbb25d119a 100644

drivers/gpu/drm/panel/panel-orisetech-otm8009a.c line 15

Quoted 7 lines
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1 -0
@@ -9,6 +9,7 @@
  #include <linux/backlight.h>
  #include <linux/delay.h>
  #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
  #include <linux/module.h>
  #include <linux/regulator/consumer.h>
 
author maintainer
#8 lore raw

PATCH 4/6 drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h>

In reply to Thomas Zimmermann

Include <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1 -0
index ed53787d1dea..364f1c9a16d9 100644
@@ -11,6 +11,7 @@
 #include <linux/backlight.h>
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/regulator/consumer.h>
 
Signature · 1 line
2.46.0
maintainer Reviewed-by on v1 4/6
#9 lore raw

Re: [PATCH 4/6] drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h>

Quoted 15 lines · Thomas Zimmermann

Include <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
  drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +0 -0
index ed53787d1dea..364f1c9a16d9 100644

drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c line 17

Quoted 7 lines
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1 -0
@@ -11,6 +11,7 @@
  #include <linux/backlight.h>
  #include <linux/delay.h>
  #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
  #include <linux/module.h>
  #include <linux/regulator/consumer.h>
 
author maintainer
#10 lore raw

PATCH 5/6 drm/panel: panel-samsung-s6e63m0: Include <linux/property.h>

In reply to Thomas Zimmermann

Include <linux/property.h> directly to get device_property_read_u32(). Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1 -0
index a0e5698275a5..6917ffda5b2b 100644
@@ -15,6 +15,7 @@
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
 #include <linux/module.h>
+#include <linux/property.h>
 #include <linux/regulator/consumer.h>
 #include <linux/media-bus-format.h>
 
Signature · 1 line
2.46.0
maintainer Reviewed-by on v1 5/6
#11 lore raw

Re: [PATCH 5/6] drm/panel: panel-samsung-s6e63m0: Include <linux/property.h>

Quoted 15 lines · Thomas Zimmermann

Include <linux/property.h> directly to get device_property_read_u32(). Avoids the proxy include via <linux/backlight.h>

Cc Neil Armstrong <[email protected]>
Cc Jessica Zhang <[email protected]>
---
  drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +0 -0
index a0e5698275a5..6917ffda5b2b 100644

drivers/gpu/drm/panel/panel-samsung-s6e63m0.c line 21

Quoted 7 lines
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1 -0
@@ -15,6 +15,7 @@
  #include <linux/delay.h>
  #include <linux/gpio/consumer.h>
  #include <linux/module.h>
+#include <linux/property.h>
  #include <linux/regulator/consumer.h>
  #include <linux/media-bus-format.h>
 
author maintainer
#12 lore raw

PATCH 6/6 drm/tiny: panel-mipi-dbi: Include <linux/of.h>

In reply to Thomas Zimmermann

Include <linux/of.h> directly to get of_property_read_string_index(). Avoids the proxy include via <linux/backlight.h>

---
 drivers/gpu/drm/tiny/panel-mipi-dbi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tiny/panel-mipi-dbi.c +1 -0
index e66729b31bd6..7f193a65b93f 100644
@@ -10,6 +10,7 @@
 #include <linux/firmware.h>
 #include <linux/gpio/consumer.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/property.h>
 #include <linux/regulator/consumer.h>
 #include <linux/spi/spi.h>
Signature · 1 line
2.46.0