From patchwork Tue May 27 12:07:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 30970 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B752E20A25 for ; Tue, 27 May 2014 12:08:10 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id m1sf48201315oag.6 for ; Tue, 27 May 2014 05:08:10 -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 :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=InJM9YvdT6w9TF63L5yWVWeSv6iFcCTXLJSfdc3u0gg=; b=W5Ynr8VvUZ/BYTP6WeY/or7vT1xqdWGshUGoz03DmNrt/DmNsP1ADwUIPOTRVHHJiu kbrj2iRMP8HKVZhN5Jel/zCXWC+zJg4xhOQ8vAeGs+0ri+DMvrEPe3k1HGwCTIM5OL3+ E4Q0MnyEddvQbQym+ihwSOVTFGN5OtYStSAz4QV232olybDrymbiYUtPeisWVPF1bBhJ FS6lc7zZQcqHN88+xOsjaRnhfIIK06fNzt0M8F1R7znafniF5CE4SlgXiVdpJP5kU9KQ JSH/PImsRPIH98mMgSO+88EhUIIXpFQ0W6tVBzRQC8qRS7trPpEvvwAAf8mEFVWYPDVw tQZw== X-Gm-Message-State: ALoCoQnEC+LvW/nhhJe589OtgYvaVLSAjFMJMZzDKVhkEZlp5zbwBrL2A3Dfjz26qinav+9JwPrC X-Received: by 10.50.225.4 with SMTP id rg4mr12496675igc.1.1401192490318; Tue, 27 May 2014 05:08:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.231 with SMTP id h94ls3142890qgd.49.gmail; Tue, 27 May 2014 05:08:10 -0700 (PDT) X-Received: by 10.52.145.35 with SMTP id sr3mr221282vdb.66.1401192490186; Tue, 27 May 2014 05:08:10 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id wv11si7957941vdc.14.2014.05.27.05.08.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 05:08:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hq11so4636982vcb.22 for ; Tue, 27 May 2014 05:08:10 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr26702925vcb.0.1401192490082; Tue, 27 May 2014 05:08:10 -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 ib8csp113611vcb; Tue, 27 May 2014 05:08:09 -0700 (PDT) X-Received: by 10.68.164.100 with SMTP id yp4mr35674813pbb.136.1401192489201; Tue, 27 May 2014 05:08:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qq2si18435899pbb.105.2014.05.27.05.08.08 for ; Tue, 27 May 2014 05:08:08 -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 S1752225AbaE0MH6 (ORCPT + 27 others); Tue, 27 May 2014 08:07:58 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36967 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbaE0MHx (ORCPT ); Tue, 27 May 2014 08:07:53 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so9025278pad.2 for ; Tue, 27 May 2014 05:07:52 -0700 (PDT) X-Received: by 10.68.194.202 with SMTP id hy10mr35907158pbc.94.1401192472524; Tue, 27 May 2014 05:07:52 -0700 (PDT) Received: from localhost ([223.227.245.64]) by mx.google.com with ESMTPSA id zq5sm23071159pbb.37.2014.05.27.05.07.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 27 May 2014 05:07:51 -0700 (PDT) From: Viresh Kumar 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 Subject: [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR Date: Tue, 27 May 2014 17:37:29 +0530 Message-Id: <1780c3205893be8567fa29ccd86674e2f32555b4.1401192160.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: 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.177 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: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- Liam/Broonie: Please see if this can go through Rafael as 2nd patch is dependent on it. include/linux/regulator/consumer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 1a4a8c1..0cfc286 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 0; } +static inline int regulator_set_voltage_time(struct regulator *regulator, + int old_uV, int new_uV) +{ + return 0; +} + static inline int regulator_get_voltage(struct regulator *regulator) { return -EINVAL;