[libcamera-devel,v3,2/9] include: linux: Add MEDIA_LNK_FL_ANCILLARY_LINK
diff mbox series

Message ID 20211207224512.753979-3-djrscally@gmail.com
State Superseded
Headers show
Series
  • Enumerate CameraLens by following sensor's ancillary links
Related show

Commit Message

Daniel Scally Dec. 7, 2021, 10:45 p.m. UTC
Add the new media link type macro to the header so we can use it to
identify the new links.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
---
Changes in v3:

	- New patch

 include/linux/media.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Laurent Pinchart Dec. 8, 2021, 7:53 a.m. UTC | #1
Hi Daniel,

Thank you for the patch.

On Tue, Dec 07, 2021 at 10:45:05PM +0000, Daniel Scally wrote:
> Add the new media link type macro to the header so we can use it to
> identify the new links.

With an explanation of why this doesn't come from directly upstream
(including a link to the corresponding upstream series from
lore.kernel.org),

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> Signed-off-by: Daniel Scally <djrscally@gmail.com>
> ---
> Changes in v3:
> 
> 	- New patch
> 
>  include/linux/media.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/media.h b/include/linux/media.h
> index 17432318..e3123d1a 100644
> --- a/include/linux/media.h
> +++ b/include/linux/media.h
> @@ -222,6 +222,7 @@ struct media_pad_desc {
>  #define MEDIA_LNK_FL_LINK_TYPE			(0xf << 28)
>  #  define MEDIA_LNK_FL_DATA_LINK		(0 << 28)
>  #  define MEDIA_LNK_FL_INTERFACE_LINK		(1 << 28)
> +#  define MEDIA_LNK_FL_ANCILLARY_LINK		(2 << 28)
>  
>  struct media_link_desc {
>  	struct media_pad_desc source;

Patch
diff mbox series

diff --git a/include/linux/media.h b/include/linux/media.h
index 17432318..e3123d1a 100644
--- a/include/linux/media.h
+++ b/include/linux/media.h
@@ -222,6 +222,7 @@  struct media_pad_desc {
 #define MEDIA_LNK_FL_LINK_TYPE			(0xf << 28)
 #  define MEDIA_LNK_FL_DATA_LINK		(0 << 28)
 #  define MEDIA_LNK_FL_INTERFACE_LINK		(1 << 28)
+#  define MEDIA_LNK_FL_ANCILLARY_LINK		(2 << 28)
 
 struct media_link_desc {
 	struct media_pad_desc source;