Skip to contentSkip to conversation

drm/panel: panel-samsung-s6e88a0-ams427ap24: Fix includes

PATCH In review Thomas Zimmermann 2 participants 3 messages Aug 12, 2025 – Aug 18, 2025

Subsystems (3)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm/panel: panel-samsung-s6e88a0-ams427ap24: Fix includes

Include <linux/property.h> to declare device_property_read_bool() and <linux/mod_devicetable.h> to declare struct of_device_id. Avoids the dependency on the backlight header to include both.

---
 drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c +2 -0
index e91f50662997..7e2f4e043d62 100644
@@ -7,7 +7,9 @@
 #include <linux/backlight.h>
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
+#include <linux/property.h>
 #include <linux/regulator/consumer.h>
 
 #include <video/mipi_display.h>
Signature · 1 line
2.50.1
author maintainer
#1 lore raw

ping for review

Am 12.08.25 um 10:25 schrieb Thomas Zimmermann:

Quoted 23 lines

Include <linux/property.h> to declare device_property_read_bool() and <linux/mod_devicetable.h> to declare struct of_device_id. Avoids the dependency on the backlight header to include both.

---
  drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c +2 -0
index e91f50662997..7e2f4e043d62 100644
@@ -7,7 +7,9 @@
  #include <linux/backlight.h>
  #include <linux/delay.h>
  #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
  #include <linux/module.h>
+#include <linux/property.h>
  #include <linux/regulator/consumer.h>
 
  #include <video/mipi_display.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)
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Zimmermann
Quoted 14 lines · Thomas Zimmermann

Include <linux/property.h> to declare device_property_read_bool() and <linux/mod_devicetable.h> to declare struct of_device_id. Avoids the dependency on the backlight header to include both.

---
  drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c +0 -0
index e91f50662997..7e2f4e043d62 100644

drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c line 15

Quoted 9 lines
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c +2 -0
@@ -7,7 +7,9 @@
  #include <linux/backlight.h>
  #include <linux/delay.h>
  #include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
  #include <linux/module.h>
+#include <linux/property.h>
  #include <linux/regulator/consumer.h>
 
  #include <video/mipi_display.h>