Subject: [PATCH] pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins

From: [email-masked] (Andy Gross)
Date: Thu, 19 Nov 2015 00:04:26 -0600

On Wed, Nov 18, 2015 at 11:33:17AM -0800, 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" <[email-masked]>
> Cc: Bjorn Andersson <[email-masked]>
> Signed-off-by: Stephen Boyd <[email-masked]>
> ---

This is pretty nice. 

Reviewed-by: Andy Gross <[email-masked]>

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project