mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	drm: Make passing of format info to drm_helper_mode_fill_fb_struct() mandatory
Now that everyone passes along the format info to drm_helper_mode_fill_fb_struct() we can make this behaviour mandatory and drop the extra lookup. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250701090722.13645-20-ville.syrjala@linux.intel.com
This commit is contained in:
		
							parent
							
								
									3f019d7496
								
							
						
					
					
						commit
						41ab92d35c
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -88,8 +88,7 @@ void drm_helper_mode_fill_fb_struct(struct drm_device *dev,
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fb->dev = dev;
 | 
						fb->dev = dev;
 | 
				
			||||||
	fb->format = info ? : drm_get_format_info(dev, mode_cmd->pixel_format,
 | 
						fb->format = info;
 | 
				
			||||||
						  mode_cmd->modifier[0]);
 | 
					 | 
				
			||||||
	fb->width = mode_cmd->width;
 | 
						fb->width = mode_cmd->width;
 | 
				
			||||||
	fb->height = mode_cmd->height;
 | 
						fb->height = mode_cmd->height;
 | 
				
			||||||
	for (i = 0; i < 4; i++) {
 | 
						for (i = 0; i < 4; i++) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue