[PATCH] pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins
Linus Walleij
linus.walleij at linaro.org
Tue Dec 1 01:02:09 PST 2015
On Wed, Nov 18, 2015 at 8:33 PM, Stephen Boyd <sboyd at codeaurora.org> wrote:
> 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 at mm-sol.com>
> Cc: Bjorn Andersson <bjorn.andersson at sonymobile.com>
> Signed-off-by: Stephen Boyd <sboyd at codeaurora.org>
Patch applied with Andy's and Björn's ACKs.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list