Re: [PATCH 3/7] media: v4l: subdev: Support INTERNAL pads in routing IOCTLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrey,

On Sun, Jul 02, 2023 at 02:57:44PM +0300, Andrey Konovalov wrote:
> Hi Sakari,
> 
> On 30.06.2023 23:43, Sakari Ailus wrote:
> > Take the new INTERNAL pad flag into account in validating routing IOCTL
> > argument. Effectively this is a SINK pad in this respect. Due to the union
> > there's no need to check for the particular name.
> > 
> > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
> > ---
> >   drivers/media/v4l2-core/v4l2-subdev.c | 3 ++-
> >   1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c
> > index 2ec179cd1264..36886a9047c4 100644
> > --- a/drivers/media/v4l2-core/v4l2-subdev.c
> > +++ b/drivers/media/v4l2-core/v4l2-subdev.c
> > @@ -1787,7 +1787,8 @@ int v4l2_subdev_routing_validate(struct v4l2_subdev *sd,
> >   		/* Validate the sink and source pad numbers. */
> >   		if (route->sink_pad >= sd->entity.num_pads ||
> > -		    !(sd->entity.pads[route->sink_pad].flags & MEDIA_PAD_FL_SINK)) {
> > +		    !(sd->entity.pads[route->sink_pad].flags &
> > +		      MEDIA_PAD_FL_SINK)) {
> 
> This is a white space only change now, so maybe this patch could be just
> dropped?

Oops. Well, I can still do the line wrap, but the commit message needs to
change. It's no longer related to internal pads.

-- 
Regards,

Sakari Ailus



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux