Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp846787yba; Wed, 3 Apr 2019 22:10:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqysp5SgN8Lw21O1xm9nPd8+wyK5SkweFhShzNSZnYjn39uN3d1dwNNB4jdSyc+EBo+3W1VG X-Received: by 2002:aa7:8c13:: with SMTP id c19mr3611285pfd.225.1554354643720; Wed, 03 Apr 2019 22:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554354643; cv=none; d=google.com; s=arc-20160816; b=bZ66DUdyBsuURrfONOgNHmi3uFJVtS17L6UvV2axPLVFXcMUzmP2vgs2yvQwBAhOVt ftoUL/JWZYJggKK+g4fe3p94Nb/SuxCy4Z1Z4fTnH/RDTFee99Nr+LkJ5Jp/k6ZNydl4 Ra8+wt5LsndkjL1hJ/Af8oN1CTfH4wYf/XZexxAKK+M1/jGbh9EVyW1yn3lF/iWwqwcE cxJyCWM1m1PhkwVNQJ2vvoC+CTu2lUbWuRSAnsga1T3nbnA0XZG1J4yKOVyH/BWVCAaf PtLAFYBbN8RfFxWx1b6dM5169dkicFWjqP6sqs3juqqk3DllG7WXKxBB9rVdrHNyLi/7 SuqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vQdCIQWz2/OSkRD/KWHO1VP+gkavuY4twT+b1yBYoCM=; b=F7zgtvY3Ti/rOcXYUOuIbubtam8ekUTnu/WXQX30k8PQkNOjoNoN4YMETEt+w19Bcv haVh9tk2cLRgIMi+nrzkTl5RUzf2TkbeFMgyG+xceKU8rCiM1VGVtrRsTxjKEGpGVKbi UqSetyLhanpvyBwnF5Ou2GaUUBcETuSMgwKoVgBjA6t6MgqAoUxvArUmMo8JD/8/ga4G cbZjhNX1biIv/0TWYCEhkqAuTCVjZtxHRMTsVGmIlSNNb4gVCrNLMtUiGONUaT2evl+z 4k9fMuFelpbrsses4Uv2CPEnD03EYXjlpivWVw2Zy3yPKw5fs8fYLl0FcrYMUmWtOQUk SMiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A8KoeW3L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id e24si11050606pgh.403.2019.04.03.22.10.28; Wed, 03 Apr 2019 22:10:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A8KoeW3L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726574AbfDDFJt (ORCPT + 99 others); Thu, 4 Apr 2019 01:09:49 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43339 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbfDDFJr (ORCPT ); Thu, 4 Apr 2019 01:09:47 -0400 Received: by mail-pg1-f196.google.com with SMTP id z9so603209pgu.10 for ; Wed, 03 Apr 2019 22:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vQdCIQWz2/OSkRD/KWHO1VP+gkavuY4twT+b1yBYoCM=; b=A8KoeW3LQ8IeBLIEjTe8gdpRfup7E9tSobKG3ChSpGgnRBLLI5S+oASEFkZJ/OnO/C +YqVgGk3jFkYaub4hwjTph4fLbE58mc+ewR0ghD19ZGrWHBPmQMFLJQEmaVSirgnQmSi Daf4++Fy0ofkTw0yTeu1/t+YonjdUc++ptCaWDXfn5hcldU489IJOlP6PobXPjVT+0xq ZkS0lbXx+8YDEYrVbpFLcvjvKkdE90MWz96O6DB+ts4aSfuotARcwZj8BgADd29q553o +C9PP65zBS+OEox1on2LaJDtRBXq3RUpT9mCNsW7R4VeeDrUNrI0UsNdri43GKbkkwqT Blag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vQdCIQWz2/OSkRD/KWHO1VP+gkavuY4twT+b1yBYoCM=; b=SfVP84OjQzmR5j2ov1mKl1B2mMuN0gBpTFCSLAy/bMziazw/P2H+BM+wgy9Dfs/JoT F8XFnNqoAgrX1EXKM97HSkoNIEyyJ35zk2mr01FCO6jEYMOetfaOx4sX1CulnROlAOTJ yOpUW0sivzlP8aWtuFW0nNTjgY0rPLXOCL1Ud+YIBj+5lLchpHewn0QbhkVA21a6Ojnl iSOjuAU/45hI/2CjxbVaeg2euh9bL4XeNaAZScndQLZy3IYb8pLcvMw7AAA/P/PpTBRG LAHFTbo7qmuqzZBR1SFDzijtvYYhGT6oayzkAzr8wXhZtX8ijO17/piMiMJjQDWuzLCK 9naw== X-Gm-Message-State: APjAAAUJvQkODlWjjPe5s8/gCXrjVbLR5y7HHGniPFjO/tCg4EEDleMw 0idhXzX6OZ8mve9BP+wkWYDLIQ== X-Received: by 2002:a63:4750:: with SMTP id w16mr3765472pgk.256.1554354586830; Wed, 03 Apr 2019 22:09:46 -0700 (PDT) Received: from centauri.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id a129sm50589089pfa.152.2019.04.03.22.09.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 22:09:46 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown , Liam Girdwood , Mark Brown Cc: linux-arm-msm@vger.kernel.org, jorge.ramirez-ortiz@linaro.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/9] drivers: regulator: qcom_spmi: enable linear range info Date: Thu, 4 Apr 2019 07:09:22 +0200 Message-Id: <20190404050931.9812-2-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190404050931.9812-1-niklas.cassel@linaro.org> References: <20190404050931.9812-1-niklas.cassel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz --- drivers/regulator/qcom_spmi-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 3193506eac6f..f2edf510b0df 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1907,6 +1907,7 @@ MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match); static int qcom_spmi_regulator_probe(struct platform_device *pdev) { const struct spmi_regulator_data *reg; + const struct spmi_voltage_range *range; const struct of_device_id *match; struct regulator_config config = { }; struct regulator_dev *rdev; @@ -1996,6 +1997,12 @@ static int qcom_spmi_regulator_probe(struct platform_device *pdev) } } + if (vreg->logical_type == SPMI_REGULATOR_LOGICAL_TYPE_HFS430) { + /* since there is only one range */ + range = spmi_regulator_find_range(vreg); + vreg->desc.uV_step = range->step_uV; + } + config.dev = dev; config.driver_data = vreg; config.regmap = regmap; -- 2.20.1