diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-18 11:33:17 -0800 |
---|---|---|
committer | Fenglin Wu <fenglinw@codeaurora.org> | 2016-08-30 14:59:24 +0800 |
commit | e841045b426e9b204afb2f43da1ae4071f76923b (patch) | |
tree | eee32e8ea7ed1a224b76dde0b9ab7046bdf8c0b1 /drivers/base/platform.c | |
parent | e8a0e0808d1862467d32aaee8982b5b6500ba89c (diff) |
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.
Change-Id: I52ce5ad8a5c4a79187dc94403dc0704d83f0549c
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>
Git-commit: ab4256cfeab91569e1d96e7f0014538fe0845259
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[fenglinw@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions