apple_gpio_irq_type
unsigned int irqtype = apple_gpio_irq_type(irqd_get_trigger_type(data));
unsigned int irqtype = apple_gpio_irq_type(type);