/* This is used directly or indirectly to implement gpio_to_irq(). It returns the number of the IRQ signaled by this (input) GPIO, or a negative errno.  */
int __gpio_to_irq(unsigned gpio)
/* This is used directly or indirectly to implement gpio_to_irq(). It returns the number of the IRQ signaled by this (input) GPIO, or a negative errno.  */
int __gpio_to_irq(unsigned gpio)
{
	struct gpio_chip	*chip;
	chip = gpio_to_chip(gpio);
	return chip->to_irq ? chip->to_irq(chip, gpio - chip->base) : -ENXIO;
}