[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200319174802.GH14585@pendragon.ideasonboard.com>
Date: Thu, 19 Mar 2020 19:48:02 +0200
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Alex Riesen <alexander.riesen@...itec.com>
Cc: Kieran Bingham <kieran.bingham@...asonboard.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>,
devel@...verdev.osuosl.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH v2 02/10] media: adv748x: include everything adv748x.h
needs into the file
Hi Alexander,
Thank you for the patch.
On Thu, Mar 19, 2020 at 06:41:48PM +0100, Alex Riesen wrote:
> To follow the established practice of not depending on others to
> pull everything in.
>
> Signed-off-by: Alexander Riesen <alexander.riesen@...itec.com>
Good idea. While at it, could you include "adv748x.h" as the very first
header in at least one of the C files ? That will help ensuring the
header stays self-contained in the future.
> ---
> drivers/media/i2c/adv748x/adv748x-afe.c | 2 --
> drivers/media/i2c/adv748x/adv748x-core.c | 2 --
> drivers/media/i2c/adv748x/adv748x-csi2.c | 2 --
> drivers/media/i2c/adv748x/adv748x-hdmi.c | 2 --
> drivers/media/i2c/adv748x/adv748x.h | 2 ++
> 5 files changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/media/i2c/adv748x/adv748x-afe.c b/drivers/media/i2c/adv748x/adv748x-afe.c
> index dbbb1e4d6363..ab0479641c10 100644
> --- a/drivers/media/i2c/adv748x/adv748x-afe.c
> +++ b/drivers/media/i2c/adv748x/adv748x-afe.c
> @@ -11,8 +11,6 @@
> #include <linux/mutex.h>
> #include <linux/v4l2-dv-timings.h>
>
> -#include <media/v4l2-ctrls.h>
> -#include <media/v4l2-device.h>
> #include <media/v4l2-dv-timings.h>
> #include <media/v4l2-ioctl.h>
>
> diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c
> index c3fb113cef62..345f009de121 100644
> --- a/drivers/media/i2c/adv748x/adv748x-core.c
> +++ b/drivers/media/i2c/adv748x/adv748x-core.c
> @@ -20,8 +20,6 @@
> #include <linux/slab.h>
> #include <linux/v4l2-dv-timings.h>
>
> -#include <media/v4l2-ctrls.h>
> -#include <media/v4l2-device.h>
> #include <media/v4l2-dv-timings.h>
> #include <media/v4l2-fwnode.h>
> #include <media/v4l2-ioctl.h>
> diff --git a/drivers/media/i2c/adv748x/adv748x-csi2.c b/drivers/media/i2c/adv748x/adv748x-csi2.c
> index c43ce5d78723..78d391009b5a 100644
> --- a/drivers/media/i2c/adv748x/adv748x-csi2.c
> +++ b/drivers/media/i2c/adv748x/adv748x-csi2.c
> @@ -8,8 +8,6 @@
> #include <linux/module.h>
> #include <linux/mutex.h>
>
> -#include <media/v4l2-ctrls.h>
> -#include <media/v4l2-device.h>
> #include <media/v4l2-ioctl.h>
>
> #include "adv748x.h"
> diff --git a/drivers/media/i2c/adv748x/adv748x-hdmi.c b/drivers/media/i2c/adv748x/adv748x-hdmi.c
> index c557f8fdf11a..0dffcdf79ff2 100644
> --- a/drivers/media/i2c/adv748x/adv748x-hdmi.c
> +++ b/drivers/media/i2c/adv748x/adv748x-hdmi.c
> @@ -8,8 +8,6 @@
> #include <linux/module.h>
> #include <linux/mutex.h>
>
> -#include <media/v4l2-ctrls.h>
> -#include <media/v4l2-device.h>
> #include <media/v4l2-dv-timings.h>
> #include <media/v4l2-ioctl.h>
>
> diff --git a/drivers/media/i2c/adv748x/adv748x.h b/drivers/media/i2c/adv748x/adv748x.h
> index fccb388ce179..09aab4138c3f 100644
> --- a/drivers/media/i2c/adv748x/adv748x.h
> +++ b/drivers/media/i2c/adv748x/adv748x.h
> @@ -19,6 +19,8 @@
> */
>
> #include <linux/i2c.h>
> +#include <media/v4l2-ctrls.h>
> +#include <media/v4l2-device.h>
>
> #ifndef _ADV748X_H_
> #define _ADV748X_H_
--
Regards,
Laurent Pinchart
Powered by blists - more mailing lists