Message ID | 20250618122436.379013-5-tzimmermann@suse.de |
---|---|
State | New |
Headers | show |
Series | backlight: Do not include <linux/fb.h> in header file | expand |
On Wed, Jun 18, 2025 at 02:16:36PM +0200, Thomas Zimmermann wrote: > Include <linux/of.h> to declare device_property_read_u32() and > struct of_device_id. Avoids dependency on backlight header to include > it. > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> > --- > drivers/gpu/drm/panel/panel-summit.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c > index 4854437e2899..02aa1ec287d6 100644 > --- a/drivers/gpu/drm/panel/panel-summit.c > +++ b/drivers/gpu/drm/panel/panel-summit.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0-only > > #include <linux/backlight.h> > +#include <linux/of.h> > #include <drm/drm_device.h> > #include <drm/drm_mipi_dsi.h> > #include <drm/drm_mode.h> Reviewed-by: Janne Grunau <j@jannau.net>
diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c index 4854437e2899..02aa1ec287d6 100644 --- a/drivers/gpu/drm/panel/panel-summit.c +++ b/drivers/gpu/drm/panel/panel-summit.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only #include <linux/backlight.h> +#include <linux/of.h> #include <drm/drm_device.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_mode.h>
Include <linux/of.h> to declare device_property_read_u32() and struct of_device_id. Avoids dependency on backlight header to include it. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> --- drivers/gpu/drm/panel/panel-summit.c | 1 + 1 file changed, 1 insertion(+)