media: atomisp: Remove setting of f->fmt.pix.priv from atomisp_set_fmt()
authorHans de Goede <hdegoede@redhat.com>
Sun, 14 Apr 2024 15:00:19 +0000 (16:00 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 10:05:42 +0000 (11:05 +0100)
This value is not used by the driver, only returned to userspace and
userspace should not rely on / use the priv fields. Drop setting this.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c

index 29b0873f4ed985a77f845f2cb77467145adb5cd5..102d39a45c9c0326a16469040e1efcdbf6444fef 100644 (file)
@@ -4413,8 +4413,6 @@ int atomisp_set_fmt(struct video_device *vdev, struct v4l2_format *f)
        atomisp_fill_pix_format(&pipe->pix, f->fmt.pix.width, f->fmt.pix.height, format_bridge);
 
        f->fmt.pix = pipe->pix;
-       f->fmt.pix.priv = PAGE_ALIGN(pipe->pix.width *
-                                    pipe->pix.height * 2);
 
        dev_dbg(isp->dev, "%s: %dx%d, image size: %d, %d bytes per line\n",
                __func__,