Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751684AbdHaMAK (ORCPT ); Thu, 31 Aug 2017 08:00:10 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:33964 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbdHaMAH (ORCPT ); Thu, 31 Aug 2017 08:00:07 -0400 MIME-Version: 1.0 In-Reply-To: <20170719064121.13948-1-fenglinw@codeaurora.org> References: <20170719064121.13948-1-fenglinw@codeaurora.org> From: Linus Walleij Date: Thu, 31 Aug 2017 14:00:06 +0200 Message-ID: Subject: Re: [PATCH V1] pinctrl: qcom: spmi-gpio: Correct power_source range check To: fenglinw@codeaurora.org Cc: "linux-arm-msm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Bjorn Andersson , "linux-gpio@vger.kernel.org" , David Collins , aghayal@codeaurora.org, wruan@codeaurora.org, kgunda@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v7VC0FNd024319 Content-Length: 367 Lines: 13 On Wed, Jul 19, 2017 at 8:39 AM, wrote: > From: Fenglin Wu > > Power source selection in DIG_VIN_CTL is indexed from 0, in the range > check it shouldn't be equal to the total number of power sources. > > Signed-off-by: Fenglin Wu Patch applied with Björn's ACK. Yours, Linus Walleij