mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	media: v4l2-dev.h: add kernel-doc to two macros
There are two macros at v4l2-dev.h that aren't documented. Document them, for completeness. Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
		
							parent
							
								
									66f1e6078e
								
							
						
					
					
						commit
						69b925c5fc
					
				
					 1 changed files with 15 additions and 3 deletions
				
			
		| 
						 | 
					@ -261,9 +261,21 @@ struct video_device
 | 
				
			||||||
	struct mutex *lock;
 | 
						struct mutex *lock;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define media_entity_to_video_device(__e) \
 | 
					/**
 | 
				
			||||||
	container_of(__e, struct video_device, entity)
 | 
					 * media_entity_to_video_device - Returns a &struct video_device from
 | 
				
			||||||
/* dev to video-device */
 | 
					 *	the &struct media_entity embedded on it.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @entity: pointer to &struct media_entity
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					#define media_entity_to_video_device(entity) \
 | 
				
			||||||
 | 
						container_of(entity, struct video_device, entity)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * to_video_device - Returns a &struct video_device from the
 | 
				
			||||||
 | 
					 *	&struct device embedded on it.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @cd: pointer to &struct device
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
#define to_video_device(cd) container_of(cd, struct video_device, dev)
 | 
					#define to_video_device(cd) container_of(cd, struct video_device, dev)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue