Skip to contentSkip to conversation

media: vb2: Fix comment

PATCH In review Ricardo Ribalda 2 participants 2 messages Oct 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: vb2: Fix comment

If V4L2_TYPE_IS_OUTPUT() the information has been initially provided by the user, not by the driver.

Fixes e23ccc0ad925 ("[media] v4l: add videobuf2 Video for Linux 2 driver framework")
---
 drivers/media/common/videobuf2/videobuf2-v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/common/videobuf2/videobuf2-v4l2.c +1 -1
index 293f3d5f1c4e..9201d854dbcc 100644
@@ -231,7 +231,7 @@ static int vb2_fill_vb2_v4l2_buffer(struct vb2_buffer *vb, struct v4l2_buffer *b
 			break;
 		}
 
-		/* Fill in driver-provided information for OUTPUT types */
+		/* Fill in user-provided information for OUTPUT types */
 		if (V4L2_TYPE_IS_OUTPUT(b->type)) {
 			/*
 			 * Will have to go up to b->length when API starts

---
base-commit: 698b6e3163bafd61e1b7d13572e2c42974ac85ec
change-id: 20241022-vb2-comment-f5e93ca193d1

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 28 lines · Ricardo Ribalda

If V4L2_TYPE_IS_OUTPUT() the information has been initially provided by the user, not by the driver.

Fixes e23ccc0ad925 ("[media] v4l: add videobuf2 Video for Linux 2 driver framework")
---
 drivers/media/common/videobuf2/videobuf2-v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/common/videobuf2/videobuf2-v4l2.c +1 -2
index 293f3d5f1c4e..9201d854dbcc 100644
@@ -231,7 +231,7 @@ static int vb2_fill_vb2_v4l2_buffer(struct vb2_buffer *vb, struct v4l2_buffer *b
                        break;
                }
 
-               /* Fill in driver-provided information for OUTPUT types */
+               /* Fill in user-provided information for OUTPUT types */
                if (V4L2_TYPE_IS_OUTPUT(b->type)) {
                        /*
                         * Will have to go up to b->length when API starts
 
---

base-commit: 698b6e3163bafd61e1b7d13572e2c42974ac85ec
change-id: 20241022-vb2-comment-f5e93ca193d1

Quoted 4 lines

Best regards,
--
Ricardo Ribalda <[email protected]>

That's correct. It's not really a fix, but a clean-up, though, so the
Fixes: tag may be confusing. I'll leave it to Hans and Mauro, though.

Best,
Tomasz