linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <stephen.boyd@linaro.org>
To: Mark Brown <broonie@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	Bjorn Andersson <bjorn.andersson@linaro.org>
Subject: [PATCH 3/3] regulator: qcom_spmi: Add support for get_mode/set_mode on switches
Date: Sat, 25 Jun 2016 22:52:13 -0700	[thread overview]
Message-ID: <20160626055213.18071-4-stephen.boyd@linaro.org> (raw)
In-Reply-To: <20160626055213.18071-1-stephen.boyd@linaro.org>

The voltage switches support mode switching, so add support for
these ops to those types of regulators.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Fixes: e92a4047419c ("regulator: Add QCOM SPMI regulator driver")
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
---
 drivers/regulator/qcom_spmi-regulator.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c
index 43f8f20b82e9..16c5f84e06a7 100644
--- a/drivers/regulator/qcom_spmi-regulator.c
+++ b/drivers/regulator/qcom_spmi-regulator.c
@@ -1085,6 +1085,8 @@ static struct regulator_ops spmi_vs_ops = {
 	.set_pull_down		= spmi_regulator_common_set_pull_down,
 	.set_soft_start		= spmi_regulator_common_set_soft_start,
 	.set_over_current_protection = spmi_regulator_vs_ocp,
+	.set_mode		= spmi_regulator_common_set_mode,
+	.get_mode		= spmi_regulator_common_get_mode,
 };
 
 static struct regulator_ops spmi_boost_ops = {
-- 
2.9.0.rc2.8.ga28705d

  parent reply	other threads:[~2016-06-26  5:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-26  5:52 [PATCH 0/3] Update pm8941 spmi regulators for USB OTG Stephen Boyd
2016-06-26  5:52 ` [PATCH 1/3] regulator: qcom_spmi: Add support for S4 supply on pm8941 Stephen Boyd
2016-06-26 12:03   ` Applied "regulator: qcom_spmi: Add support for S4 supply on pm8941" to the regulator tree Mark Brown
2016-06-26  5:52 ` [PATCH 2/3] regulator: qcom_spmi: Update mvs1/mvs2 switches on pm8941 Stephen Boyd
2016-06-26 12:03   ` Applied "regulator: qcom_spmi: Update mvs1/mvs2 switches on pm8941" to the regulator tree Mark Brown
2016-06-26  5:52 ` Stephen Boyd [this message]
2016-06-26 12:03   ` Applied "regulator: qcom_spmi: Add support for get_mode/set_mode on switches" " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160626055213.18071-4-stephen.boyd@linaro.org \
    --to=stephen.boyd@linaro.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=broonie@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).