]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 18 Nov 2015 19:33:17 +0000 (11:33 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Dec 2015 09:00:53 +0000 (10:00 +0100)
commitd7d5e24211268afb10baef1f9134e9faca680b05
tree8cde644f222946809446b9d0156c2861bae1702b
parent66198e9a08a686649aabe194a82262e1181db3a3
pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins

The number of interrupts is always equal to the number of pins
provided by the PMIC gpio and MPP hardware blocks. Count the
number of irqs to figure out the number of pins instead of adding
more compatible strings or doing math on the reg property. This
should make the code more generic and ease the number of changes
we have to make to the driver for each new pmic revision.

Cc: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c