[PATCH] pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins
From: Bjorn Andersson <hidden>
Date: 2015-11-23 18:21:19
Also in:
linux-arm-msm, linux-gpio, lkml
From: Bjorn Andersson <hidden>
Date: 2015-11-23 18:21:19
Also in:
linux-arm-msm, linux-gpio, lkml
On Wed 18 Nov 11:33 PST 2015, Stephen Boyd 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" <redacted> Cc: Bjorn Andersson <redacted> Signed-off-by: Stephen Boyd <redacted> ---
Reviewed-by: Bjorn Andersson <redacted> Regards, Bjorn