From patchwork Sun Jun 26 05:52:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9199097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4E38607D3 for ; Sun, 26 Jun 2016 05:54:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5002223A6 for ; Sun, 26 Jun 2016 05:54:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C199D2852D; Sun, 26 Jun 2016 05:54:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 88EBD28525 for ; Sun, 26 Jun 2016 05:54:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bH30E-0000Ju-OJ; Sun, 26 Jun 2016 05:53:06 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bH2zn-0000Cn-6Y for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2016 05:52:40 +0000 Received: by mail-pa0-x22d.google.com with SMTP id wo6so49139446pac.3 for ; Sat, 25 Jun 2016 22:52:18 -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; bh=keN/O9kqd77AkoJoKRV6L9cEWWf/NfLrsAzboJYbHnA=; b=XbGcJM0NrmhilvwYh1eYz8jZHCJKTCB5RoetY3i5T3u/Ty2w3I7Hzue6pYTXmBsKTc koI03WHmNF+7Wb5McSXm17iXIMTJiJcGwMKjCfShkuOONYvfTtsJLXsoECkRSkYX07h5 9e4I7TcqBuF6Lqa5kkzwte59B+bh5Vo9lWx/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=keN/O9kqd77AkoJoKRV6L9cEWWf/NfLrsAzboJYbHnA=; b=W7zItppchii6kSZMKW7tMzBKRIkGVEE7GCZHVmx3qZRRlMrOjaPS0So94tcBDmWVgf WiNNPb7VnYNx3+1wyEKB0lJ6SCWnc1fvSgQSMJA6QZ2Hxg7u5LJkrz6qiYGK9J+Jckwm f+s7ysY3B6vJuOAgnAxLaZvpxCYcENq3on7cmd6Aqm0Bi3yKFHqE0SrlCBsnnqORcyTL DyIQ6mEcR9miT1hH/mpm+LAZTrIFbleIJ92x3+ionlJiAIYLJB6t2Ez63qya2fFs1a5M JjYclNn3w1VWaDUdAAvVwkK8PW7tIWsyGUgMdngj3zFxHRmwAgCM6+h2xYLCMk8OmA2f FixA== X-Gm-Message-State: ALyK8tIivckswWYB2+iweIC1zLNvpZlZ3fM+w0V1nC46+0EzmBjoSBcMOfRuzuinyGMzLbCF X-Received: by 10.67.7.199 with SMTP id de7mr22321360pad.94.1466920338317; Sat, 25 Jun 2016 22:52:18 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id h189sm3045789pfc.52.2016.06.25.22.52.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jun 2016 22:52:17 -0700 (PDT) From: Stephen Boyd To: Mark Brown 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 Message-Id: <20160626055213.18071-4-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160626055213.18071-1-stephen.boyd@linaro.org> References: <20160626055213.18071-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160625_225239_286625_78BC795E X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Andersson MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The voltage switches support mode switching, so add support for these ops to those types of regulators. Cc: Bjorn Andersson Fixes: e92a4047419c ("regulator: Add QCOM SPMI regulator driver") Signed-off-by: Stephen Boyd --- 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 = {