mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 f0a68a912c
			
		
	
	
		f0a68a912c
		
	
	
	
	
		
			
			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-4-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			166 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			166 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| 
 | |
| #include <linux/platform_device.h>
 | |
| 
 | |
| bool rust_helper_dev_is_platform(const struct device *dev)
 | |
| {
 | |
| 	return dev_is_platform(dev);
 | |
| }
 |