[media] v4l2: drop V4L2_CHIP_MATCH_SUBDEV_NAME
After using the new VIDIOC_DBG_G_CHIP_NAME ioctl I realized that the matching by name possibility is useless. Just drop it and rename MATCH_SUBDEV_IDX to just MATCH_SUBDEV. The v4l2-dbg utility is much better placed to match by name by just enumerating all bridge and subdev devices until chip_name.name matches. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								cd634f1bfc
							
						
					
				
			
			
				commit
				
					
						3eef25107c
					
				
			
		
					 6 changed files with 26 additions and 77 deletions
				
			
		|  | @ -1812,8 +1812,7 @@ struct v4l2_event_subscription { | |||
| #define V4L2_CHIP_MATCH_I2C_DRIVER  1  /* Match against I2C driver name */ | ||||
| #define V4L2_CHIP_MATCH_I2C_ADDR    2  /* Match against I2C 7-bit address */ | ||||
| #define V4L2_CHIP_MATCH_AC97        3  /* Match against anciliary AC97 chip */ | ||||
| #define V4L2_CHIP_MATCH_SUBDEV_NAME 4  /* Match against subdev name */ | ||||
| #define V4L2_CHIP_MATCH_SUBDEV_IDX  5  /* Match against subdev index */ | ||||
| #define V4L2_CHIP_MATCH_SUBDEV      4  /* Match against subdev index */ | ||||
| 
 | ||||
| struct v4l2_dbg_match { | ||||
| 	__u32 type; /* Match type */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hans Verkuil
				Hans Verkuil