Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751417AbdHaNt3 (ORCPT ); Thu, 31 Aug 2017 09:49:29 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:35633 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbdHaNt1 (ORCPT ); Thu, 31 Aug 2017 09:49:27 -0400 X-Google-Smtp-Source: ADKCNb4ODYzHvm+o3YQ/RB36fqD9u5eulk6khh+0/mrtmefj09YThVdoh/6/Of/VFMyJppTlB8QpkeqmG2Wq+QZyYEk= MIME-Version: 1.0 In-Reply-To: <20170828030227.16796-1-fenglinw@codeaurora.org> References: <20170828030227.16796-1-fenglinw@codeaurora.org> From: Linus Walleij Date: Thu, 31 Aug 2017 15:49:26 +0200 Message-ID: Subject: Re: [PATCH V2] 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-Length: 428 Lines: 14 On Mon, Aug 28, 2017 at 5:00 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 > Acked-by: Bjorn Andersson I already applied a version of this. Yours, Linus Walleij