mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			410 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			410 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (c) 2015 Google, Inc
 | |
|  */
 | |
| 
 | |
| #define LOG_CATEGORY UCLASS_PWRSEQ
 | |
| 
 | |
| #include <dm.h>
 | |
| #include <pwrseq.h>
 | |
| 
 | |
| int pwrseq_set_power(struct udevice *dev, bool enable)
 | |
| {
 | |
| 	struct pwrseq_ops *ops = pwrseq_get_ops(dev);
 | |
| 
 | |
| 	if (!ops->set_power)
 | |
| 		return -ENOSYS;
 | |
| 
 | |
| 	return ops->set_power(dev, enable);
 | |
| }
 | |
| 
 | |
| UCLASS_DRIVER(pwrseq) = {
 | |
| 	.id		= UCLASS_PWRSEQ,
 | |
| 	.name		= "pwrseq",
 | |
| };
 |