gpio: Add missing parenthesis to the GPIO_TO_PORT define
Add missing parenthesis to the GPIO_TO_PORT macro. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
		
							parent
							
								
									ad31f656ae
								
							
						
					
					
						commit
						01941377ff
					
				| 
						 | 
				
			
			@ -31,7 +31,7 @@ struct mxc_bank_info {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
#ifndef CONFIG_DM_GPIO
 | 
			
		||||
#define GPIO_TO_PORT(n)		(n / 32)
 | 
			
		||||
#define GPIO_TO_PORT(n)		((n) / 32)
 | 
			
		||||
 | 
			
		||||
/* GPIO port description */
 | 
			
		||||
static unsigned long gpio_ports[] = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue