Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755859AbbLAJCP (ORCPT ); Tue, 1 Dec 2015 04:02:15 -0500 Received: from mail-ob0-f177.google.com ([209.85.214.177]:33089 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755599AbbLAJCK convert rfc822-to-8bit (ORCPT ); Tue, 1 Dec 2015 04:02:10 -0500 MIME-Version: 1.0 In-Reply-To: <1447875197-21645-1-git-send-email-sboyd@codeaurora.org> References: <1447808426-21834-1-git-send-email-sboyd@codeaurora.org> <1447875197-21645-1-git-send-email-sboyd@codeaurora.org> Date: Tue, 1 Dec 2015 10:02:09 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: qcom: pmic-gpio/mpp: of_irq_count() == npins From: Linus Walleij To: Stephen Boyd Cc: "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , Andy Gross , "Ivan T. Ivanov" , Bjorn Andersson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 22 On Wed, Nov 18, 2015 at 8:33 PM, 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" > Cc: Bjorn Andersson > Signed-off-by: Stephen Boyd Patch applied with Andy's and Björn's ACKs. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/