diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-04-08 12:45:47 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 06:41:34 (GMT) |
commit | 130cbe3082a1d69e7009b8c1dabb44babedd9269 (patch) | |
tree | 218383fd52fd6565718552818cfd5fa8723c7792 /drivers/pinctrl/pinctrl-msm.c | |
parent | c15c0d160c1f64456ed31dc469f0283768cfcf59 (diff) | |
download | linux-130cbe3082a1d69e7009b8c1dabb44babedd9269.tar.xz |
pinctrl: st: use gpiolib irqchip helpers
This lets the gpiolib core handle the irqchip set-up and
chained IRQ on the primary (behind the mux) IRQ chip in
the st pinctrl driver.
Default irq type is set to level low at irqchip add time.
The v1 was sent by Linus
(https://lkml.org/lkml/2014/4/4/287).
Two changes were necessary to make it to work properly
on STiH416:
1 - dev reference was not passed to the gpio_chip
struct, causing a panic.
2 - gpiochip_irqchip_add passed IRQ_TYPE_NONE as
default type, which caused lot of warnings at
init time. I choose IRQ_TYPE_LEVEL_LOW as default.
Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Maxime COQUELIN <maxime.coquelin@st.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-msm.c')
0 files changed, 0 insertions, 0 deletions