From: Mika Westerberg Date: Wed, 6 May 2015 10:29:08 +0000 (+0300) Subject: i2c / ACPI: Assign IRQ for devices that have GpioInt automatically X-Git-Tag: omap-for-v4.2/fixes-rc1^2~162^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=845c877009cf014b971aab7f54613f9185a824b0;p=pandora-kernel.git 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 Acked-by: Wolfram Sang Signed-off-by: Linus Walleij --- Reading git-diff-tree failed