From patchwork Fri Jan 15 12:28:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 363583 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp258658jap; Fri, 15 Jan 2021 04:43:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJweJw4AGBFu8jj0d2Bg4Xi0BXE+SGpx8NgSC0HPbUbVSHH0ghjukeQf3SdhCtJ0X9d60HWs X-Received: by 2002:a17:907:a06f:: with SMTP id ia15mr8208930ejc.328.1610714616706; Fri, 15 Jan 2021 04:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714616; cv=none; d=google.com; s=arc-20160816; b=z99FVjo2wp6M/ckuSYkKkFbGo6TNxwZ0hqlj3j6kb2VxA3bYnBG/RlbWr+ObO3MzgW GYHw97Icc0P6qu9G/Cx4agCmGJBs+g+BBQh45f0RHpsinmzL6tx3fdPKLkJRlFu2GKKU Z3amSfBeQqWDFrVyW64z+yNFE7RJD3wFlqbXgXPJOXrn4DU5j83Ku+ZnW7IJubmHpV4h DhMFJ2NoNXm0kbaAKEDem6kVpC1MRujxta9mj1gpsWzi5PWQa0I6lErvvc1EBeF6toD5 VV80BUcNfpmymYKvbRP7c6mzr4/rxZRLykRdxru4IaGQ2UBWGtdQ4qkI7Fx6DoTFEAWP H1Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qtFfD3odHyrTHFUrkNYC1tRHK4bj7GCZ1jX+Pm0GQNA=; b=BVfApi2dkgiCNsUqxUoUtOgVIA2BEKZ46Geb56KeUHHHlm25U9Q1vgJrmHPxZvB0xu ucRDUYcfu8ig+PQHkjbgkZJlqTLQ/x23rqK9IPR/eHaSYIerKGkTLEEgKx1LD20qQNeb D76quq/ARLAG9M2iszaVHQ3HNm70EKtd1v/oAwBHj71eTVz8Pe7mlL9EWT8IYmpxPokj RTQXpsQIjOpxZr3bVXaH/+Zw4Vl3DerRjnjz8x9/k7F/bryipxu3wWj5PjVWcAJDJyB7 wm7xAyYOrYYemIeQkREmgS/c6FGSNnJSmbD8EQ1Xuu2ZX2BYN5ZM2m3LBOOCUJgtMeW5 O0zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mUqzsmWe; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si3927605ede.511.2021.01.15.04.43.36; Fri, 15 Jan 2021 04:43:36 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=mUqzsmWe; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387535AbhAOMlw (ORCPT + 13 others); Fri, 15 Jan 2021 07:41:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:47086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387854AbhAOMjf (ORCPT ); Fri, 15 Jan 2021 07:39:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DC80207C4; Fri, 15 Jan 2021 12:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714335; bh=SVqLzJthz+vIMjPwp9FB7tdXTohbTXyxEVY+5fW2Wqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mUqzsmWeFFIDcIFGD0pGWsnWVNyWWHjKFAM6Rccg4aK3DA18Cz5MuKOVMSKc7mLtU M7sWSR/Jp/+pR6i4oHwqWDoSndu3ZqE86In3nO+kpcOTPTU6HbCZiUF91VKi7/oNi8 45BHamEo2D+4UbJOFBpdklZi42ob+1G6aFgjKWms= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Vinod Koul , Mark Brown Subject: [PATCH 5.10 089/103] regulator: qcom-rpmh-regulator: correct hfsmps515 definition Date: Fri, 15 Jan 2021 13:28:22 +0100 Message-Id: <20210115122010.320977587@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115122006.047132306@linuxfoundation.org> References: <20210115122006.047132306@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Dmitry Baryshkov commit df6b92fa40050e59ea89784294bf6d04c0c47705 upstream. According to the datasheet pm8009's HFS515 regulators have 16mV resolution rather than declared 1.6 mV. Correct the resolution. Signed-off-by: Dmitry Baryshkov Fixes: 06369bcc15a1 ("regulator: qcom-rpmh: Add support for SM8150") Reviewed-by: Vinod Koul Link: https://lore.kernel.org/r/20201231122348.637917-3-dmitry.baryshkov@linaro.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/qcom-rpmh-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -726,7 +726,7 @@ static const struct rpmh_vreg_hw_data pm static const struct rpmh_vreg_hw_data pmic5_hfsmps515 = { .regulator_type = VRM, .ops = &rpmh_regulator_vrm_ops, - .voltage_range = REGULATOR_LINEAR_RANGE(2800000, 0, 4, 1600), + .voltage_range = REGULATOR_LINEAR_RANGE(2800000, 0, 4, 16000), .n_voltages = 5, .pmic_mode_map = pmic_mode_map_pmic5_smps, .of_map_mode = rpmh_regulator_pmic4_smps_of_map_mode,