mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	regulator: pfuze100: Fix off-by-one for max_register setting
max_register should be register count - 1. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Robin Gong <b38343@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
		
							parent
							
								
									e56566699c
								
							
						
					
					
						commit
						6b8430c3f3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -332,7 +332,7 @@ static int pfuze_identify(struct pfuze_chip *pfuze_chip) | |||
| static const struct regmap_config pfuze_regmap_config = { | ||||
| 	.reg_bits = 8, | ||||
| 	.val_bits = 8, | ||||
| 	.max_register = PFUZE_NUMREGS, | ||||
| 	.max_register = PFUZE_NUMREGS - 1, | ||||
| 	.cache_type = REGCACHE_RBTREE, | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Axel Lin
						Axel Lin