Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7008433ybi; Thu, 13 Jun 2019 08:05:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdKOk5+l9e7BFmr0ujzVXv+C+If+rZO3Q84cm7DVuakDcP8+725tF2WXeOF/kbv2mdPsD9 X-Received: by 2002:a17:902:b102:: with SMTP id q2mr1655150plr.149.1560438310507; Thu, 13 Jun 2019 08:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438310; cv=none; d=google.com; s=arc-20160816; b=QR1kaRVD8y3lonkWWy0j2vsIS41eaOwUFV3y0botvOBjeGo3qb0X5g1GX43H07MM0K wNAsXfqlXw94yP9M2cda9KKT4FutOGKzwu6Z9aTZ7oCu3Ax3tu8AIu8Dw5BOpfOTLigo PwCmA4nGUqZfXT1sx3vIRWPZolNuO5Ib3Dny9Q0fUy0ZzgqEnIXUQ5/4zpenFTyTXD8n aMwGn/uy57I80wT6VgDuaxg7kWkjFLmjIs/w8psq799TjJ8U6zIEMCtrLBeGdNXr7kUD QLXbbT4ssR0lELFhLrpOxmf0VC+Akn6/JH+u06x+WKsu3zZFHu+h0p9Y4dBiTqAEZkD8 jKYA== 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=myQhkfq1fE7+RgOZ2wrFEvwOz0MaLHF5MuzrCwnf6QZ4Ngc4rifqcDVqn8WY6p1Uwy fxDa2KifQ2C2gzUsB1vCJpVdjmTnA9miDmIlshU7fSp9NtFtwPw4IWzoeODpcljkFClD ZtafgrWEW0WPkcBp/0xrjqcO8uwEBFzJb75tdor/1AxlnBEtCi0tZvYJ2wNPDr/CtVv9 xCLlbrgS/pWTYS+yD98jRTt1kclIk90DJLJI06PUdlWiADrVCN1RvQjyRgkxc+kXSpYw SY/LBewU2fSL2CKituD52C4vSJCfoRkG6no44yBu+PjuFOGid5l+8VdmoFe+YbMygnYy 7YJQ== 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 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=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 l8si35129pgk.528.2019.06.13.08.04.52; Thu, 13 Jun 2019 08:05:10 -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=@gmail.com header.s=20161025 header.b=gd0JYIfX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732715AbfFMPDk (ORCPT + 99 others); Thu, 13 Jun 2019 11:03:40 -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: 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 Signed-off-by: Jeffrey Hugo --- 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 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; -- 2.17.1