[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <14317533.zFDg2lzPh5@avalon>
Date: Thu, 27 Dec 2018 12:02:25 +0200
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Sam Ravnborg <sam@...nborg.org>
Cc: Daniel Vetter <daniel@...ll.ch>, David Airlie <airlied@...ux.ie>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <maxime.ripard@...tlin.com>,
Sean Paul <sean@...rly.run>, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
Archit Taneja <architt@...eaurora.org>,
Andrzej Hajda <a.hajda@...sung.com>,
Kieran Bingham <kieran.bingham+renesas@...asonboard.com>,
Fabio Estevam <fabio.estevam@....com>,
Neil Armstrong <narmstrong@...libre.com>
Subject: Re: [PATCH v1 4/7] drm: remove include of drmP.h from bridge/dw_hdmi.h
Hi Sam,
Thank you for the patch.
On Wednesday, 26 December 2018 23:03:50 EET Sam Ravnborg wrote:
> Add missing includes in dw_hdmi.h and
> fix fallout in drivers.
>
> Signed-off-by: Sam Ravnborg <sam@...nborg.org>
> Cc: Archit Taneja <architt@...eaurora.org>
> Cc: Andrzej Hajda <a.hajda@...sung.com>
> Cc: Laurent Pinchart <Laurent.pinchart@...asonboard.com>
> Cc: David Airlie <airlied@...ux.ie>
> Cc: Daniel Vetter <daniel@...ll.ch>
> Cc: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
> Cc: Fabio Estevam <fabio.estevam@....com>
> Cc: Neil Armstrong <narmstrong@...libre.com>
> Cc: Maxime Ripard <maxime.ripard@...tlin.com>
> ---
> drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 4 ++++
> drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c | 1 +
> include/drm/bridge/dw_hdmi.h | 5 ++++-
> 3 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
> b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c index
> 8f9c8a6b46de..c61ec4caaa84 100644
> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
> @@ -8,6 +8,10 @@
> * it under the terms of the GNU General Public License version 2 as
> * published by the Free Software Foundation.
> */
> +
> +#include <linux/dma-mapping.h>
> +#include <linux/module.h>
> +
> #include <drm/bridge/dw_hdmi.h>
>
> #include <sound/hdmi-codec.h>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c index 75490a3e0a2a..f5b07a2e3f59
> 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> @@ -8,6 +8,7 @@
> */
>
> #include <linux/module.h>
> +#include <linux/mod_devicetable.h>
Nitpicking, _ comes before u.
> #include <linux/platform_device.h>
>
> #include <drm/bridge/dw_hdmi.h>
> diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h
> index ccb5aa8468e0..b0218ee75a65 100644
> --- a/include/drm/bridge/dw_hdmi.h
> +++ b/include/drm/bridge/dw_hdmi.h
> @@ -10,7 +10,10 @@
> #ifndef __DW_HDMI__
> #define __DW_HDMI__
>
> -#include <drm/drmP.h>
> +#include <linux/platform_device.h>
I think you can replace this with a forward declaration of struct
platform_device. You will likely need to handle more fallout.
> +#include <drm/drm_connector.h>
> +#include <drm/drm_modes.h>
Please add forward definitions for structures used in this file and not
defined in the above headers. I'm thinking about struct regmap and struct
drm_encoder. They may be defined in headers included from the above three, or
from headers included from files including dw_hdmi.h, but we shouldn't rely on
that as it may change.
With this fixed,
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
> struct dw_hdmi;
--
Regards,
Laurent Pinchart
Powered by blists - more mailing lists