mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	power: supply: sbs-charger: simplified bool function
Signed-off-by: Daniel Perez <danielperezdeandres@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
		
							parent
							
								
									d71472465a
								
							
						
					
					
						commit
						dba8347696
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -137,10 +137,7 @@ static enum power_supply_property sbs_properties[] = {
 | 
			
		|||
 | 
			
		||||
static bool sbs_readable_reg(struct device *dev, unsigned int reg)
 | 
			
		||||
{
 | 
			
		||||
	if (reg < SBS_CHARGER_REG_SPEC_INFO)
 | 
			
		||||
		return false;
 | 
			
		||||
	else
 | 
			
		||||
		return true;
 | 
			
		||||
	return reg >= SBS_CHARGER_REG_SPEC_INFO;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static bool sbs_volatile_reg(struct device *dev, unsigned int reg)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue