From patchwork Thu Jun 13 14:22:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrey Hugo X-Patchwork-Id: 166663 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp871916ilk; Thu, 13 Jun 2019 08:03:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2vAI4cmx8SdiJ97yrhrGzeJe9zRNIpwULLuTp5hHKaPm4H23vs/MGvU4RS9rYY3aIGGmQ X-Received: by 2002:a63:3008:: with SMTP id w8mr31511603pgw.11.1560438234328; Thu, 13 Jun 2019 08:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438234; cv=none; d=google.com; s=arc-20160816; b=MyR6hpU5YLugj6WHU6t3Deyke+i9m36GYBMUC2i9tbvFrldm5/t1V/3NcZY2II2FHb 5cfTCAFi1CrXlgqnmdOviEfGf+U5qFJj5Nc+NCzOf/+4uTmRw6O5y67pcP+RWv4P/gev O4YxH/0FP8zZT2j9UcbMnDaeDjV4lX0QvfrODkwyF1f39J56Ngb6EdSrqeaOnhvuX+3x /KZSnPHAPfmLRt/yMsh7Tt7kPBr7Ra+zU7nEYUPg4+2Apq+giABwSUMO9WkVoq8wSgSa AxXZdV8boQD/A/ghoa4+6vi+/qovpxpP8kzqqgR0oyxdRgaUrzGcUqt3fFnxgVnv5W9U Kjiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=BygsFeH7Nr66mPQvbX5gJcEmwzV3pSewGfseE3W/ZuQ=; b=Rv1+9hK8Z1xLOS+PWfK2rHn8N6wf1iJWMvO899y8EI61DdK2anWA1XMn4fNZJI/MjQ mfd8HXHUkjAufp8irfrQ5h0NClnCLT/L3HdJxpief7OQSKK5sLgl/kGkJ9bK8q4/AHAs E9E7Z9Uf1ruydP97VY3A7qcX0r/CCMsch6XgbBLK3yC9y7YV65KYH/6jD4biRFmhhdWr /uRdciMvOlJFSTt2yCOqtL5wZuzr5FMEPmeZ6jXiypR7HqWEemKXQCEznXRoDIyPSw96 dzsA1eDiiHRZNsVxKiCx4nrfS/aEP4YSFWy+bU4L9vuRiGDrD06NoytT7YGLoujyEXpG 4UEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gd0JYIfX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si3540622pfv.202.2019.06.13.08.03.54; Thu, 13 Jun 2019 08:03:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@gmail.com header.s=20161025 header.b=gd0JYIfX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732492AbfFMPDj (ORCPT + 8 others); Thu, 13 Jun 2019 11:03:39 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42714 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732491AbfFMOWf (ORCPT ); Thu, 13 Jun 2019 10:22:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id l19so8454838pgh.9; Thu, 13 Jun 2019 07:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BygsFeH7Nr66mPQvbX5gJcEmwzV3pSewGfseE3W/ZuQ=; b=gd0JYIfXIL1RfnCKpBfbXBfhfhaYXUpgDJgWzXPPJ78lgZXum7AA4tnx42ArjzsDem 2DIOpRZcjaiY5QWf7P4VAYW5jIoQu2IYUF+EIfgHlNYVg0o5Q0KEroNi2TqL7uX+5UE5 d873eFtfm/F1zBqDHhXnMFYJbu+riZyUMMEe3MGy60H2vVpJuUzXqKGLkpXkdv2Fq/G+ eFVnJzhHWxKuu8P0O+bL9mTfYeNbgqy3YYu0A1NNkabWPskuVYOcAV9jqpNORL3EiUNs JseMZa6Zzr7xAp2T5fHM6cywX1agIFf8ZejSWcw1XBNMjFddoxaihuDr8yNMwVYfMDC8 k1kA== 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; bh=BygsFeH7Nr66mPQvbX5gJcEmwzV3pSewGfseE3W/ZuQ=; b=KYAb9HtL3BMPZz25cTnbTs+IHii6zK9u5qZzi20bI+LkItSQ5z7cLiw5VHVmbWaTGC +9ek6N0GUoGxqDGQcCihn6uiDNhUsLi6i7XuEDqrmL8HXtD4lY4QoGFHLPEyybDI5UCC 5pVzNXhPiaIgMP0h45erksxD24S8d3cSc25fL9GD3MCcyd3FlLyZTtDVLA1F1Yb6Pl6L FbJkTK0+RATe3zkNIxbCnnhKwhQnxmXcMzmrPiSMgzwwfgqT0H8tcotq4EfZWmDtzMZt fMeX+UPmoLrYqP5vdvh7SFGw7gwuxWZRsPOHXkEw+tMNd55zhC92jcPjf5Xu/BGJrQhW 0iyg== X-Gm-Message-State: APjAAAVZ0Q6NCap+MiY8/AAmDLMU29Lgk23ZJ9gJ4gwwPLVWxTMVqnsH 1HurNJYplq4RCVMVGE4D6QQ= X-Received: by 2002:a17:90a:8c0c:: with SMTP id a12mr5912373pjo.67.1560435754375; Thu, 13 Jun 2019 07:22:34 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 133sm3415622pfa.92.2019.06.13.07.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 07:22:33 -0700 (PDT) From: Jeffrey Hugo To: lgirdwood@gmail.com, broonie@kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jorge Ramirez-Ortiz , Jeffrey Hugo Subject: [PATCH v3 1/7] drivers: regulator: qcom_spmi: enable linear range info Date: Thu, 13 Jun 2019 07:22:31 -0700 Message-Id: <20190613142231.8728-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190613142157.8674-1-jeffrey.l.hugo@gmail.com> References: <20190613142157.8674-1-jeffrey.l.hugo@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Jeffrey Hugo --- drivers/regulator/qcom_spmi-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 53a61fb65642..fd55438c25d6 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1744,6 +1744,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; @@ -1833,6 +1834,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;