From patchwork Thu Jun 2 10:23:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 69140 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp38092qgf; Thu, 2 Jun 2016 03:23:48 -0700 (PDT) X-Received: by 10.66.7.69 with SMTP id h5mr4460772paa.11.1464863028796; Thu, 02 Jun 2016 03:23:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si17768496pav.225.2016.06.02.03.23.48; Thu, 02 Jun 2016 03:23:48 -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 S1752999AbcFBKXr (ORCPT + 8 others); Thu, 2 Jun 2016 06:23:47 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36478 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbcFBKXq (ORCPT ); Thu, 2 Jun 2016 06:23:46 -0400 Received: by mail-wm0-f45.google.com with SMTP id n184so72495357wmn.1 for ; Thu, 02 Jun 2016 03:23:45 -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=PnKxdUjz9U+0JAiyPxg2e4bxi5VIitSvPnm/jdS3HaI=; b=Ta6MiDQF6y1+MVejYOYvv8jjdTaO+6Fk6KUC0sLDsKwJ/8u2XhYRD514APw8rEvATa nTgBq13Gryw0ddOyhWhYPbp0Ygzm8lAAS0k+WK4uduCgdEd+agiVDnSKJ/rbhrY4CX7W NmwYGaeIGUY6TUBBxOmAEuczrxe/7Mscy1WoA= 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=PnKxdUjz9U+0JAiyPxg2e4bxi5VIitSvPnm/jdS3HaI=; b=GyjxT0Rfi6V/ZEW9XQlLPYYjf3WbLDCt+nr+GHX9TySxtN8ZDl0S9weqkxnAa++U3f kqK46Hz9NrCHRemTtiQn1jUCBwcuGV0QyZZ6sK6tlHw37NMysmBaGIonl6/VZWveVwZw m/YoXqS5iLVx3KijY1Uq8Sjyv5AjsNLA6JtWgLrKb5wDgqgLhjvrlUU2Qi8Tfg7nY40n 6DQf1KLino6OjLCc4xqbCbrQoC+/QpCwi41bb03ropFD7NP0ZsMfFoPgXvXSUk5d0zTE 4WS/YaRmZaRnOz0HGX+S7DrIKiZpo4EJK6mE2pH1rp4loB7L5BgpCPP5MCmjLFppjf92 RVEg== X-Gm-Message-State: ALyK8tI6zNdMTCyyRIfTeJ4o26x4oVtErdVJ/lV/SKnGQHd1kLzv/jYpq3iL+UBDDZfSGxHn X-Received: by 10.28.1.9 with SMTP id 9mr8294805wmb.34.1464863024507; Thu, 02 Jun 2016 03:23:44 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id t3sm39637107wmf.20.2016.06.02.03.23.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 03:23:43 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, Mark Brown Cc: linux-kernel@vger.kernel.org, Liam Girdwood , linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [RFC PATCH v1 2/3] regulator: qcom_smd: add list_voltage callback Date: Thu, 2 Jun 2016 11:23:15 +0100 Message-Id: <1464862996-3147-3-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464862996-3147-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1464862996-3147-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds support to list_voltage callback, so that consumers like mmc core, can get information of supported voltage range. Without this patch there is no way for mmc core to know this voltage range. Signed-off-by: Srinivas Kandagatla --- drivers/regulator/qcom_smd-regulator.c | 1 + 1 file changed, 1 insertion(+) -- 2.8.2 -- 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_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 56a17ec..b11b627 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -140,6 +140,7 @@ static const struct regulator_ops rpm_smps_ldo_ops = { .enable = rpm_reg_enable, .disable = rpm_reg_disable, .is_enabled = rpm_reg_is_enabled, + .list_voltage = regulator_list_voltage_linear_range, .get_voltage = rpm_reg_get_voltage, .set_voltage = rpm_reg_set_voltage,