* [PATCH] v4l: Fix typo in v4l2_subdev_get_try_crop()
@ 2013-08-26 9:17 Laurent Pinchart
2013-08-26 9:53 ` Sakari Ailus
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2013-08-26 9:17 UTC (permalink / raw)
To: linux-media; +Cc: Sakari Ailus
The helper function is defined by a macro that is erroneously called
with the compose rectangle instead of the crop rectangle. Fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
include/media/v4l2-subdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index bfda0fe..34d9219 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -628,7 +628,7 @@ struct v4l2_subdev_fh {
}
__V4L2_SUBDEV_MK_GET_TRY(v4l2_mbus_framefmt, format, try_fmt)
-__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_compose)
+__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_crop)
__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, compose, try_compose)
#endif
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] v4l: Fix typo in v4l2_subdev_get_try_crop()
2013-08-26 9:17 [PATCH] v4l: Fix typo in v4l2_subdev_get_try_crop() Laurent Pinchart
@ 2013-08-26 9:53 ` Sakari Ailus
2013-08-27 12:34 ` Laurent Pinchart
0 siblings, 1 reply; 3+ messages in thread
From: Sakari Ailus @ 2013-08-26 9:53 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
Hi Laurent,
On Mon, Aug 26, 2013 at 11:17:51AM +0200, Laurent Pinchart wrote:
> The helper function is defined by a macro that is erroneously called
> with the compose rectangle instead of the crop rectangle. Fix it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> include/media/v4l2-subdev.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> index bfda0fe..34d9219 100644
> --- a/include/media/v4l2-subdev.h
> +++ b/include/media/v4l2-subdev.h
> @@ -628,7 +628,7 @@ struct v4l2_subdev_fh {
> }
>
> __V4L2_SUBDEV_MK_GET_TRY(v4l2_mbus_framefmt, format, try_fmt)
> -__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_compose)
> +__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_crop)
> __V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, compose, try_compose)
> #endif
>
Oops. My bad I guess... it's a surprise to me this one slipped through.
Excellent find!
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
--
Cheers,
Sakari Ailus
e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] v4l: Fix typo in v4l2_subdev_get_try_crop()
2013-08-26 9:53 ` Sakari Ailus
@ 2013-08-27 12:34 ` Laurent Pinchart
0 siblings, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2013-08-27 12:34 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media
On Monday 26 August 2013 12:53:46 Sakari Ailus wrote:
> On Mon, Aug 26, 2013 at 11:17:51AM +0200, Laurent Pinchart wrote:
> > The helper function is defined by a macro that is erroneously called
> > with the compose rectangle instead of the crop rectangle. Fix it.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> >
> > include/media/v4l2-subdev.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> > index bfda0fe..34d9219 100644
> > --- a/include/media/v4l2-subdev.h
> > +++ b/include/media/v4l2-subdev.h
> > @@ -628,7 +628,7 @@ struct v4l2_subdev_fh {
> >
> > }
> >
> > __V4L2_SUBDEV_MK_GET_TRY(v4l2_mbus_framefmt, format, try_fmt)
> > -__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_compose)
> > +__V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, crop, try_crop)
> > __V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, compose, try_compose)
> > #endif
>
> Oops. My bad I guess... it's a surprise to me this one slipped through.
> Excellent find!
>
> Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Thank you.
Mauro, could you please pick this patch up, for v3.12 if still possible ?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-27 12:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 9:17 [PATCH] v4l: Fix typo in v4l2_subdev_get_try_crop() Laurent Pinchart
2013-08-26 9:53 ` Sakari Ailus
2013-08-27 12:34 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox