[PATCH 04/12] drm/panel: panel-summit: Include <linux/of.h>
Janne Grunau
j at jannau.net
Wed Jun 18 08:19:06 PDT 2025
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 at 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 at jannau.net>
More information about the linux-arm-kernel
mailing list