Skip to contentSkip to conversation

drm/panel: panel-summit: Include <linux/property.h> and <linux/mod_devicetable.h>

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

Subsystems (4)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm/panel: panel-summit: Include <linux/property.h> and <linux/mod_devicetable.h>

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

---
Based on an earlier patch reviewed at [1].

[1] https://patchwork.freedesktop.org/patch/664115/?series=150454&rev=3

---
 drivers/gpu/drm/panel/panel-summit.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/panel/panel-summit.c +2 -0
index 4854437e2899..6d40b9ddfe02 100644
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
 #include <linux/backlight.h>
+#include <linux/mod_devicetable.h>
+#include <linux/property.h>
 #include <drm/drm_device.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_mode.h>
Signature · 1 line
2.50.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · Thomas Zimmermann

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

---
Based on an earlier patch reviewed at [1].

[1] https://patchwork.freedesktop.org/patch/664115/?series=150454&rev=3

---
  drivers/gpu/drm/panel/panel-summit.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/panel/panel-summit.c +0 -0
index 4854437e2899..6d40b9ddfe02 100644

drivers/gpu/drm/panel/panel-summit.c line 8

Quoted 8 lines
drivers/gpu/drm/panel/panel-summit.c +2 -0
@@ -1,6 +1,8 @@
  // SPDX-License-Identifier: GPL-2.0-only
 
  #include <linux/backlight.h>
+#include <linux/mod_devicetable.h>
+#include <linux/property.h>
  #include <drm/drm_device.h>
  #include <drm/drm_mipi_dsi.h>
  #include <drm/drm_mode.h>