Re: [PATCH] Staging: media: fix missing blank line coding style issue in atomisp_tpg.c

From: Alan Cox
Date: Thu May 18 2017 - 12:31:47 EST


On Wed, 2017-05-17 at 21:48 -0400, Manny Vindiola wrote:
> This is a patch to the atomisp_tpg.c file that fixes up a missing
> blank line warning found by the checkpatch.pl tool
>
> Signed-off-by: Manny Vindiola <mannyv@xxxxxxxxx>
> ---
> Âdrivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 +
> Â1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c
> b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c
> index 996d1bd..48b9604 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c
> @@ -56,6 +56,7 @@ static int tpg_set_fmt(struct v4l2_subdev *sd,
> Â ÂÂÂÂÂÂÂstruct v4l2_subdev_format *format)
> Â{
> Â struct v4l2_mbus_framefmt *fmt = &format->format;
> +
> Â if (format->pad)
> Â return -EINVAL;
> Â /* only raw8 grbg is supported by TPG */

The TODO fille for this driver specifically says not to send formatting
patches at this point.

There is no point making trivial spacing changes in code that needs
lots of real work. It's like polishing your car when the doors have
fallen off.

Alan