diff mbox series

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

Message ID 20241011144632.90434-3-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_device_is_available(). Avoids
the proxy include via <linux/backlight.h>

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Jessica Zhang <quic_jesszhan@quicinc.com>
---
 drivers/gpu/drm/drm_panel.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Neil Armstrong Oct. 16, 2024, 9:34 a.m. UTC | #1
On 11/10/2024 16:41, Thomas Zimmermann wrote:
> Include <linux/of.h> directly to get of_device_is_available(). Avoids
> the proxy include via <linux/backlight.h>
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Neil Armstrong <neil.armstrong@linaro.org>
> Cc: Jessica Zhang <quic_jesszhan@quicinc.com>
> ---
>   drivers/gpu/drm/drm_panel.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
> index 19ab0a794add..2379e501c08b 100644
> --- a/drivers/gpu/drm/drm_panel.c
> +++ b/drivers/gpu/drm/drm_panel.c
> @@ -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>

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index 19ab0a794add..2379e501c08b 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -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>