Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3557074pxj; Tue, 1 Jun 2021 08:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrG9D67D19Ege+yNFfzQS62pwtTE28zKa6McAHVmpBgSMDEcplRx5EaaI325j1pofpFYAh X-Received: by 2002:a05:600c:414c:: with SMTP id h12mr27087643wmm.53.1622559684939; Tue, 01 Jun 2021 08:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622559684; cv=none; d=google.com; s=arc-20160816; b=JxcdVd8yI8wH/uD2yAhBKNyuARrKRnberZ2tj0gesGqfqs939G0oPRBYlP6ryT52nQ cEqmg943xsC5icqyiGdJNrDPn6O24xK6XX6cUVvu1N/HQ3vUi4+QT7Q3nNVgh8MuB6Lm SkbVOLV5rHm7M6IdnazypEB2omGbRZXH8b26YbhmyvDDoXy3DjlEoY3JlCWdTKu/5Wcb 0vm9RL8XwoLNV60GIKZbHSLz6tZb+TI806v8sDrmUntoeJS/g8hAPEZbsE1HBq1oCkV3 qvyDddEb7BkPfwqD3X1aEqwxWW2a5UqOL2HQNspLLGmHMRXYpBzx97lcEvBMHKrtciXb PgnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x67didzJtzPvmOqgoOtarXvLTU2X2jkGh5nw7JkZVzU=; b=i0eH5xGtD+g58IJ1DEq3ZhoDdHRawKM9N/zb9JeK9LguJdOaE5lt7LauWh988fnJlH z6kN7lecj0IYJT1Wlc2EBNDnyaCSx9i/BvdcK6QquXzKA2WWyxLbwAwDiLkQbEbxuujm EQ+aGlNecHAu7jJG50lig3zC65pM9qBxGbZf7Bxh0vWCmZkpqjXCQ78Kuhu29h/id+iY HQu46xSrmf6fa71/KuPpwGRjEwZStMccyo2gjBwpPRPWHRZeG0Oi37OTzUMu44Fa4To4 MNaoWZwl6miSShR2E52OuOss7aLnzUvy5jnAcUXk2RH4Q1BD2o8in90LFsYeIY6mLX+x 6Fzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l+7hzMmP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si19245659ejx.447.2021.06.01.08.01.00; Tue, 01 Jun 2021 08:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l+7hzMmP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234332AbhFAO73 (ORCPT + 99 others); Tue, 1 Jun 2021 10:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233797AbhFAO70 (ORCPT ); Tue, 1 Jun 2021 10:59:26 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A412C061574 for ; Tue, 1 Jun 2021 07:57:44 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id u5-20020a7bc0450000b02901480e40338bso1423648wmc.1 for ; Tue, 01 Jun 2021 07:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=x67didzJtzPvmOqgoOtarXvLTU2X2jkGh5nw7JkZVzU=; b=l+7hzMmPtjN45ePn9RNs41K0zG4xu7SfGq6Ex66ocZ7kMM5kADn84QdgR8hpFz4yM/ EQcn0um0ME4ntF8kEZsNMFxMsjp1PtlXjQhzcY7/1GDoFrdeQC9IbBQc121gpgH3ZjXA ra2GSpf1mMcZ15xBJ7ol+qRugNLpfqmoY9Bpa61OGLITY73meyUD/3j/yllNyjOMkWGC xlwUVyXkbl/DZAIRyQ9d+x7GfdgUuoiw9um7LkQ2Byfn7rriXzxhLiAjtspplC3Y3tHs tCab2APbTgOsVuhc/XV6TIznhXDQX5m9kQPoEM0nBp15MewJXO6cj1iZUSORe5LpoMKg x6ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=x67didzJtzPvmOqgoOtarXvLTU2X2jkGh5nw7JkZVzU=; b=qa9YUmfZEZGa0J42Fo/ZLiYPx3zCPMRZH1HNpIGbGB9gZboU534kFS/XHV9Zaj+j7M moiZEDPvhcylMeK3KKbzjR/R0bHxpKSai2q65Ja7gcuUDBAJqFCirIIx/4njvhpiujV4 7b+Sq4VOtkk6H6Nyx9i4khbTP495Xc0QAUOZwpxHNFJjYXrs3GJ31RGZ7cId+D/ahQGA qmuzbc4XIdyCluHt9DiwnoMoVrAKGFFYrwxMzf9a0OQdhDVRtiSLfqRfv/BIfN/jjZau ipVTVrRdirWdMHZG/zfhU9iUYNnU2jFGnNO1afhBWe1DB7U+1PY+1+4PbcUUGAduUB13 e2bA== X-Gm-Message-State: AOAM531Nk1vD1iD/lTh10jrNf7N0I8MSwDpN9uP7f7b+x5oI75ka6oT5 HBnijp3mDy88uYeBh9BLpNPaUw== X-Received: by 2002:a7b:c749:: with SMTP id w9mr318833wmk.3.1622559462684; Tue, 01 Jun 2021 07:57:42 -0700 (PDT) Received: from dell ([91.110.221.249]) by smtp.gmail.com with ESMTPSA id a11sm3475669wrr.48.2021.06.01.07.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 07:57:42 -0700 (PDT) Date: Tue, 1 Jun 2021 15:57:40 +0100 From: Lee Jones To: Axel Lin Cc: Mark Brown , Matti Vaittinen , Liam Girdwood , linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com Subject: Re: [PATCH 2/2] regulator: bd71828: Fix .n_voltages settings Message-ID: <20210601145740.GO543307@dell> References: <20210523071045.2168904-1-axel.lin@ingics.com> <20210523071045.2168904-2-axel.lin@ingics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210523071045.2168904-2-axel.lin@ingics.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 23 May 2021, Axel Lin wrote: > Current .n_voltages settings do not cover the latest 2 valid selectors, > so it fails to set voltage for the hightest voltage support. > The latest linear range has step_uV = 0, so it does not matter if we > count the .n_voltages to maximum selector + 1 or the first selector of > latest linear range + 1. > To simplify calculating the n_voltages, let's just set the > .n_voltages to maximum selector + 1. > > Fixes: 522498f8cb8c ("regulator: bd71828: Basic support for ROHM bd71828 PMIC regulators") > Signed-off-by: Axel Lin > --- > include/linux/mfd/rohm-bd71828.h | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog