mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Take advantage of the generic drvdata accessors of the generic Device type. While at it, use from_result() instead of match. Link: https://lore.kernel.org/r/20250621195118.124245-5-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0
 | 
						|
 | 
						|
#include <linux/pci.h>
 | 
						|
 | 
						|
resource_size_t rust_helper_pci_resource_len(struct pci_dev *pdev, int bar)
 | 
						|
{
 | 
						|
	return pci_resource_len(pdev, bar);
 | 
						|
}
 | 
						|
 | 
						|
bool rust_helper_dev_is_pci(const struct device *dev)
 | 
						|
{
 | 
						|
	return dev_is_pci(dev);
 | 
						|
}
 |