 6a88a0f762
			
		
	
	
	6a88a0f762
	
	
	
		
			
			The gpio_chip struct allows us to set a .to_irq callback. Once this is set we can rely on the generic __gpio_to_irq() function to map gpio->irq allowing more than one gpio_chip to register an interrupt Signed-off-by: John Crispin <blogic@openwrt.org>
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			270 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			270 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
 | |
| #define __ASM_MIPS_MACH_LANTIQ_GPIO_H
 | |
| 
 | |
| #define gpio_to_irq __gpio_to_irq
 | |
| 
 | |
| #define gpio_get_value __gpio_get_value
 | |
| #define gpio_set_value __gpio_set_value
 | |
| 
 | |
| #define gpio_cansleep __gpio_cansleep
 | |
| 
 | |
| #include <asm-generic/gpio.h>
 | |
| 
 | |
| #endif
 |