Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7015239ybi; Thu, 13 Jun 2019 08:10:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMNEyq2Q0yazWIflGHWY37RFvKRcDWLQn1ApdNDptgsMkskqTyZu/k3hlhTo8P/MbZgO1a X-Received: by 2002:a62:e0c2:: with SMTP id d63mr36674135pfm.60.1560438659684; Thu, 13 Jun 2019 08:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438659; cv=none; d=google.com; s=arc-20160816; b=GgDGk1/6SqoPJ+YMq3liHCUiFwwbERid4CAptPfnzHssTAkcWdifumsmPnXWYl5VDX eXOWQzU8ryeFyr14HY01IYOqdN3tD3QI3XW3hguTUwFnwP0AnHvZAlOxF0bBbuzBP2AK qB17vaIRPW1/oJNPOfLv7XEsN7czclg/mxYRed1k7p6Twz5ETG1vWpPoq2EEZO9n/gJs XFzMwNF24Y96pJFUeE7j0r8i4X4ORFMtGml0ww11hYHDLAXPWB4Fdai2MPXVzslP2Ljx eofQAWA1QbZBK2xjVpYzPiZfNexIKhlRH/Ll6rRgNsPTeXxLU5Odl30Hc3wvfI5G/Flt oWdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JO9uQQwMbg5ivhzHd1CnAF++m72nEakKLp0osCcJQnQ=; b=1GbNE4lzisaTPasn7OnLVCCKRNji9RB+0ZHiuScpa+RFnUO8GxVcBYr22mLwohgeY3 XFEBSqyoyADaw9AiDSZM1PVtqmfVyYwZslA6NR/vogq1INmB2jPHgtKcl77lcQzNXdmb 8zseC1KHgC0W65CW1AeEhqqnZtSLpQuX4oSCChqfiVHQqVPbwUKWiKdRNfOFFO+maPcM eEHV9xmWgWkbb1hPsavlJ4kC3y+ZAwpWUeL6BjWDkOhsbPzPezqbzdoJSnUjYTCBzIbH F1hTiU4KQRMb4A1q8d3MBmWGKvRgmJ0BAEb+Cqf2SyoMFe+MgKlwyfOtzf38nIfikleH eZww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IPZYAtoy; 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 t7si5338pjq.53.2019.06.13.08.10.42; Thu, 13 Jun 2019 08:10:59 -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=IPZYAtoy; 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 S1733076AbfFMPKO (ORCPT + 99 others); Thu, 13 Jun 2019 11:10:14 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37560 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732379AbfFMPKL (ORCPT ); Thu, 13 Jun 2019 11:10:11 -0400 Received: by mail-pg1-f193.google.com with SMTP id 20so11137235pgr.4 for ; Thu, 13 Jun 2019 08:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JO9uQQwMbg5ivhzHd1CnAF++m72nEakKLp0osCcJQnQ=; b=IPZYAtoyoFp3HvrHzCX1RIl4KYEYpG40khs6KFbup9TQk8z2GwOZdLAq9U6Dlgslh3 Ly2CwfcLpztz7OipPAimq5Rn4JKW4CCAS9+DK9hBsfh7Isg22X0s2Z5tk953041cuUbJ ZM2f82JRLxr3Ofoxghz6bZ8lHkTkS9sRwYB/yZ3o0gb83r6sC10xnIJymDLluwc3Omfc CjQHC2aH4lpljhIKO50mdS7P8r46QUHHVxoB4auFSLUWAV3dp1v11A3zDRLWQZABWyiU 7kr54U0PXOrbhK6k6ss2xiE9MN87j6QcAnRsHXpEzq+WAv9Vs3/0WTZI1Desb7UwKU5p 1TmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JO9uQQwMbg5ivhzHd1CnAF++m72nEakKLp0osCcJQnQ=; b=ohdR4kIzY6KUgUbJbDm3d4y0tAl68U/LInlj2i9eaTzxgiffiWdlVE5UxMmF74NEnI vM74xMyXdC8JS4NoanhBVFgRajj5s5BdYAl30EBByG0FK18u9LEAnec7QFgRbMHB3iaf 4y1WTbLEt8eCyP/t9vhl4jRChLgzus6Sqo5/HraKM3EFiGrucVScXmEY2qqHwOLVaPeF xRzC6hqKCLV0QnO3VUsCQjhR4IU134fDFOhScFJYngZxG72SroVcEKshfuDLuKAT0+vp ljcoy6SzQnW2YsA/VbXC8IR/eWbkkCAJmaO0GmAQToBV+lDIZ/Lpr7C9WT8TTHJRwqKS 1DrA== X-Gm-Message-State: APjAAAW05eVk2MAKbBAMXq22jdQ7HCqPOAjKtbF2yMFS4vusD1BiKXBn lr1+zvj5U+FcLiYR6qSOJcl6Lw== X-Received: by 2002:a17:90a:b298:: with SMTP id c24mr6096722pjr.18.1560438610952; Thu, 13 Jun 2019 08:10:10 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b8sm19344pff.20.2019.06.13.08.10.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jun 2019 08:10:10 -0700 (PDT) Date: Thu, 13 Jun 2019 08:10:08 -0700 From: Bjorn Andersson To: Jeffrey Hugo Cc: lgirdwood@gmail.com, broonie@kernel.org, agross@kernel.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 Subject: Re: [PATCH v3 1/7] drivers: regulator: qcom_spmi: enable linear range info Message-ID: <20190613151008.GA6792@builder> References: <20190613142157.8674-1-jeffrey.l.hugo@gmail.com> <20190613142231.8728-1-jeffrey.l.hugo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190613142231.8728-1-jeffrey.l.hugo@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 13 Jun 07:22 PDT 2019, Jeffrey Hugo wrote: > 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) { This doesn't compile, because HFS430 isn't defined until patch 7. But in patch 2 you replace this with a check to see if there's just a single range, which is a better solution. So squash the last hunk of patch 2 into this. Regards, Bjorn > + /* 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 >