Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp12279pxb; Fri, 15 Jan 2021 04:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU1DcjHS1zB6TqpU4fURAe5KnYsDbjhv6WziObSLxxZuH5N9KSIFe+vNcgo/elAT7HnI2h X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr8449911ejn.424.1610714358958; Fri, 15 Jan 2021 04:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714358; cv=none; d=google.com; s=arc-20160816; b=BX8+x+7XjAM7UDXetmPVxhM5JsBYCUX4NqzqeFNLSS63sCeuavxp8gK/iDFdhee1C4 YuMNzLVFjG9hvLuyUfxqUGWMDL0zi/UCp+IT/RkfOxY9oczVGMIm4Kf/Y1/07swXx4Lm rbBX259AF7/5quWW7UOPEw8FLFzUC1kMxsKaY2gZyYfmCnSHyIHWsZdzjIzHpPM8nqY8 eKVV6119SRabnWrTUDc2Gh/YWPdAjBLPttWjLc4BXX3XkS8cL2t3B8PJ6chsDefvOuaP y/IsTwGv0osy3JfJud/pNyAWoGZe7Q2ar1A034rRbhhMTZ1bfPo9VGxLiDMPdvyvdd4e DldA== 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=ZVj81jF5CWyqQL+mbpj0dreow2gB6ZY0YDP+X0jDkQPvywXLGkXPjeQlGUe93vzt1x mLxwt7szXMkvKlj+EhpuMmQtZjExu42um927XEvuoDu6pb/l61/Cl2etjUVWXqJH0Teo NyJLrM9+HaQ+VqplGqEqog6TNbeWbT2uNxKczINISVSOhB386b1GzYqCASaUs2aB5rRN E0VVEYd0t/9qTmJO8zYIqK0eyihxA9JO9pflbrVb91oAuc3UkuYsbC78Meq0JG1cjpXf ruAWJ7EoFxDmjFiMk8bwOOlT+z7lN+vjkJ4TqXgHBizB4qBZ8K09XcE7S0MsNlo1YPxb ZSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L+txIebm; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si3880973eji.447.2021.01.15.04.38.55; Fri, 15 Jan 2021 04:39:18 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=L+txIebm; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387857AbhAOMgO (ORCPT + 99 others); Fri, 15 Jan 2021 07:36:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:43198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728878AbhAOMgD (ORCPT ); Fri, 15 Jan 2021 07:36:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9EA1123356; Fri, 15 Jan 2021 12:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714123; bh=SVqLzJthz+vIMjPwp9FB7tdXTohbTXyxEVY+5fW2Wqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L+txIebmr79JMwEbpuBwE1sP7no0auUEtnW+SdMU836lEz5KgP5daVEm2gVAbMACt Yn7q66mnSwqfEOR39YQ08sz5oXNg6iEjnOBATp14aIq1SEBD0dnJSywLiwTUYYNdWy UhZL9d+C+vDQ9HLBjzBpgq9Wz2Ca1zYDqx+9m1a8= 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.4 57/62] regulator: qcom-rpmh-regulator: correct hfsmps515 definition Date: Fri, 15 Jan 2021 13:28:19 +0100 Message-Id: <20210115122001.146147961@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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,