]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: sx150x: move to irqdomain framework for sx150x driver
authorWei Chen <Wei.Chen@csr.com>
Thu, 4 Dec 2014 12:12:08 +0000 (20:12 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:12 +0000 (17:23 +0100)
commit093e9435483c8ad630a1432bfdcc10efe1c08a64
tree41bb517ce7389f15668a42b6786af984b41ab366
parent3c01b9a896c9c592d9edc7439d5e5cf6c411d014
gpio: sx150x: move to irqdomain framework for sx150x driver

The sx150x gpio driver used a loop to set liner irq map for gpio pins.
Now we use the irq domain to rebuild this irq mappig and make sure the
codes are still compatible to old users.

this patch also adds IRQF_ONESHOT flag to fix the IRQ flooding issues.

Signed-off-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
[Make Kconfig select GPIOLIB_IRQCHIP]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-sx150x.c