Message ID | bc48fa7971f874d77a304e86a72ff5cee6f29e7c.1401693980.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB6OPWCOAKGQEVWO4YSA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 16D21203C2 for <linaro@patches.linaro.org>; Mon, 2 Jun 2014 07:30:01 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id y20sf25776730ier.11 for <linaro@patches.linaro.org>; Mon, 02 Jun 2014 00:30:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:mime-version:sender :precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=aAFnu46FHkQp6/mCq8kr4cFtPfioJadVPqhD9WC/hyo=; b=TlArb/7B0CYLZFXSdUF1dxpiCsAI6D9BHik0YsnxIan3qHU0akybG/0ao7+DiwpeNR 3hfSkCxZ1IzCmHf5bFvQ3Q5Ti2inmtqPGY+UlS3nZH7UARzAPKzGkUN7wAfEwaU0geDr dyUYkUuBLSabSoLBNlbvSETdhxxs5AsLms0dB+Xsi2HBeP9ZYFBIfhYecmMD+w5cTGRE zH8ti/ooHUo/iICxuV+FznF5yt/dle6I8vRWaFVzb8w6wV8dJ9yImNYL7pIhnCekKkLs R88fp/Xlm8uyRRuy7fwLHEQTvxR1GRaF0j2avY5KNJpTg+4Dhtdb4rKugQllsFn4Q+mb AHKg== X-Gm-Message-State: ALoCoQk8o96xZX4gPcJfugBpJGtnP61LYWFfyZ1vLjseO+XDMCMVmDhWoR3CHmn4j01AmOJYQUv5 X-Received: by 10.42.85.142 with SMTP id q14mr12256852icl.16.1401694201078; Mon, 02 Jun 2014 00:30:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.50 with SMTP id i47ls1908934qgd.38.gmail; Mon, 02 Jun 2014 00:30:01 -0700 (PDT) X-Received: by 10.58.29.106 with SMTP id j10mr2034374veh.31.1401694200982; Mon, 02 Jun 2014 00:30:00 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id w4si1082199vct.72.2014.06.02.00.30.00 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 00:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hq11so2673819vcb.39 for <patchwork-forward@linaro.org>; Mon, 02 Jun 2014 00:30:00 -0700 (PDT) X-Received: by 10.52.13.41 with SMTP id e9mr24138365vdc.21.1401694200890; Mon, 02 Jun 2014 00:30:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp77631vcb; Mon, 2 Jun 2014 00:30:00 -0700 (PDT) X-Received: by 10.66.231.237 with SMTP id tj13mr38474976pac.136.1401694200090; Mon, 02 Jun 2014 00:30:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id aj7si15065651pad.74.2014.06.02.00.29.59; Mon, 02 Jun 2014 00:29:59 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737AbaFBH3u (ORCPT <rfc822;mturquette@linaro.org> + 28 others); Mon, 2 Jun 2014 03:29:50 -0400 Received: from mail-qa0-f51.google.com ([209.85.216.51]:50310 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbaFBH3r (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Jun 2014 03:29:47 -0400 Received: by mail-qa0-f51.google.com with SMTP id w8so2160054qac.24 for <linux-kernel@vger.kernel.org>; Mon, 02 Jun 2014 00:29:47 -0700 (PDT) X-Received: by 10.140.36.149 with SMTP id p21mr43697284qgp.54.1401694187317; Mon, 02 Jun 2014 00:29:47 -0700 (PDT) Received: from localhost (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id f38sm7870963qgd.49.2014.06.02.00.29.42 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Jun 2014 00:29:46 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, edubezval@gmail.com, pavel@ucw.cz, lgirdwood@gmail.com, broonie@kernel.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH V2 2/3] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR Date: Mon, 2 Jun 2014 12:59:24 +0530 Message-Id: <bc48fa7971f874d77a304e86a72ff5cee6f29e7c.1401693980.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> References: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> In-Reply-To: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> References: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 28fa089..7563f8b 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -397,6 +397,12 @@ static inline int regulator_set_voltage(struct regulator *regulator, return -EINVAL; } +static inline int regulator_set_voltage_time(struct regulator *regulator, + int old_uV, int new_uV) +{ + return -EINVAL; +} + static inline int regulator_get_voltage(struct regulator *regulator) { return -EINVAL;
We already have dummy implementation for most of the regulators APIs for !CONFIG_REGULATOR case and were missing it for regulator_set_voltage_time(). Found this issue while compiling cpufreq-cpu0 driver without regulators support in kernel. drivers/cpufreq/cpufreq-cpu0.c: In function ‘cpu0_cpufreq_probe’: drivers/cpufreq/cpufreq-cpu0.c:186:3: error: implicit declaration of function ‘regulator_set_voltage_time’ [-Werror=implicit-function-declaration] Fix this by adding dummy definition for regulator_set_voltage_time(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- V1->V2: return -EINVAL instead of zero. include/linux/regulator/consumer.h | 6 ++++++ 1 file changed, 6 insertions(+)