[PATCH] drm/panel: panel-summit: Include <linux/property.h> and <linux/mod_devicetable.h>
neil.armstrong at linaro.org
neil.armstrong at linaro.org
Tue Aug 12 08:15:01 UTC 2025
On 12/08/2025 10:10, Thomas Zimmermann wrote:
> 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.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
> 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(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c
> index 4854437e2899..6d40b9ddfe02 100644
> --- a/drivers/gpu/drm/panel/panel-summit.c
> +++ b/drivers/gpu/drm/panel/panel-summit.c
> @@ -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>
Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
More information about the dri-devel
mailing list