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: 70851 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp529496qgy; Sat, 25 Jun 2016 22:52:57 -0700 (PDT) X-Received: by 10.98.100.14 with SMTP id y14mr21882095pfb.84.1466920377447; Sat, 25 Jun 2016 22:52:57 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si17750544pff.74.2016.06.25.22.52.57; Sat, 25 Jun 2016 22:52:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751784AbcFZFwd (ORCPT + 8 others); Sun, 26 Jun 2016 01:52:33 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34388 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbcFZFwS (ORCPT ); Sun, 26 Jun 2016 01:52:18 -0400 Received: by mail-pa0-f52.google.com with SMTP id bz2so49181505pad.1 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=XBYp4bZGdxjhWbNgtfJpG/4zIIcCiccPD8eT3g6ZphZxGXcSAGf+Y+xeE+RD7JVSQE tL48pEVqlC/hHWTr3cu7B15b4zzYRHZb789yasAKg1vA7gb399XY6JVxFSQ5walV4zJ3 1CuQP9T7iyjnromFdTBIyHmh4n3+VwYDPAUGd7/wB3zAeEb4Q7DasTXrkAGIbQzRIDdo x3SDJ1rVo/9BMRr7XenM7lGriUNBlfrw7YuF188ntHykQo1tU1D6cyg2n159JKzZ7eha Rjj/jeELxvgOy5VcVXgYt1nL1Y4b252aROxPutK+V9cQnWIIASHMar+fCzlJHVNTeHpR wdIg== X-Gm-Message-State: ALyK8tK0+wMXRjz/qB4w2M8ma4cAaFk07R1R2LN+SAfX94sFj+biGW1/hgd3Ht9EysEdmyxU 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(+) -- 2.9.0.rc2.8.ga28705d -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 = {