diff mbox series

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

Message ID 20241011144632.90434-7-tzimmermann@suse.de (mailing list archive)
State New, archived
Headers show
Series drm: Trivial include fixes | expand

Commit Message

Thomas Zimmermann Oct. 11, 2024, 2:41 p.m. UTC
Include <linux/of.h> directly to get of_property_read_string_index().
Avoids the proxy include via <linux/backlight.h>

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
---
 drivers/gpu/drm/tiny/panel-mipi-dbi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Noralf Trønnes Oct. 12, 2024, 8:28 a.m. UTC | #1
On 11.10.2024 16:41, Thomas Zimmermann wrote:
> Include <linux/of.h> directly to get of_property_read_string_index().
> Avoids the proxy include via <linux/backlight.h>
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: "Noralf Trønnes" <noralf@tronnes.org>
> ---

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
index e66729b31bd6..7f193a65b93f 100644
--- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
+++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
@@ -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>