]> git.baikalelectronics.ru Git - kernel.git/commit
i2c / ACPI: Assign IRQ for devices that have GpioInt automatically
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 6 May 2015 10:29:08 +0000 (13:29 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 May 2015 08:24:35 +0000 (10:24 +0200)
commit2894ebd7fe70518cdb587fb058acb52a1f8a191e
treecfccc40626314dbb5a9351f27f1b4982e76f215d
parentc92e55ca55899135c83a2bcb5f67349ca4b44554
i2c / ACPI: Assign IRQ for devices that have GpioInt automatically

Following what DT already does. If the device does not have ACPI Interrupt
resource but instead it has one or more GpioInt resources listed below it,
we take the first GpioInt resource, convert it to suitable Linux IRQ number
and pass it to the driver instead.

This makes drivers simpler because the don't need to care about GPIOs at
all if only thing they need is interrupt.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/i2c/i2c-core.c