From patchwork Wed Oct 5 01:29:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 77273 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2519234qgf; Tue, 4 Oct 2016 18:29:35 -0700 (PDT) X-Received: by 10.98.198.144 with SMTP id x16mr3392114pfk.42.1475630975544; Tue, 04 Oct 2016 18:29:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si5621058paz.118.2016.10.04.18.29.35; Tue, 04 Oct 2016 18:29:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1754110AbcJEB3d (ORCPT + 14 others); Tue, 4 Oct 2016 21:29:33 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33737 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbcJEB3d (ORCPT ); Tue, 4 Oct 2016 21:29:33 -0400 Received: by mail-pa0-f42.google.com with SMTP id cd13so74913378pac.0 for ; Tue, 04 Oct 2016 18:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YDWBaPv22SBTaIW/qmUMWZ8mJbbbdIn8k8TRI1M00G4=; b=SSyb8KKMuSNfRFgtVfaNGLfZ2kYbSwSi06ROmTixJwU4YsDTcooYUDI87h6Uw0eJig FLLjTPaMY4d+ubn/61i81Ib8bWn//nWkI+OS8zl3KMsl2aGsOwOeq34Jy9H/oP+It3wH wxMskgtAPqmMVAtaAnreAhPqK/jTq2xa1EgBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YDWBaPv22SBTaIW/qmUMWZ8mJbbbdIn8k8TRI1M00G4=; b=camTQpCl52vXUD+1lOpFK1rN0cm2gMqlZXWKqkZfX4gZfv39Ip678qTGGP42nPZ2FO TxqXK90+InnC+bZ7HbXINqHK3/P04+EtSazYPwg/LOyqrF6Z0uM9c6WG6IyA2rDdbAcM Wgz/IqXFmnPcomhhi44mh5TuSFcWBFzlXwKJhF1qh24YizGpo+8kTQ2szc7/75+rRIMi KapPH7BHuvmKEuIcY9Q5eFEewypDX8PPhf8yxUkJq/t7tKCL92WDna+vNJTksi2synt4 5Njggw5qUab/AqhmiYujo1dIC7PEPq4GJGyBDUKzgBflv393UzY6vo6EMb6YNgyWx6dV jlIA== X-Gm-Message-State: AA6/9Rnzhae7eAYd7sJvUBCvzvt1KlNdka2qUWTDEhCnIN7E9B2mKAoOfZkCick093JcOB5F X-Received: by 10.66.150.202 with SMTP id uk10mr9769697pab.10.1475630972258; Tue, 04 Oct 2016 18:29:32 -0700 (PDT) Received: from localhost ([122.171.115.29]) by smtp.gmail.com with ESMTPSA id y1sm10664677pfi.46.2016.10.04.18.29.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Oct 2016 18:29:31 -0700 (PDT) Date: Wed, 5 Oct 2016 06:59:29 +0530 From: Viresh Kumar To: Rafael Wysocki , nm@ti.com, sboyd@codeaurora.org, Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , robh@kernel.org, d-gerlach@ti.com, broonie@kernel.org Subject: Re: [PATCH 7/8] PM / OPP: Allow platform specific custom opp_set_rate() callbacks Message-ID: <20161005012929.GF4664@vireshk-i7> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 04-10-16, 17:26, Viresh Kumar wrote: > diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > +int dev_pm_opp_register_set_rate_helper(struct device *dev, > + int (*set_rate)(struct device *dev, struct dev_pm_set_rate_data *data)) > +{ > + return -ENOTSUPP; > +} + this to fix up a warning: -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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/include/linux/pm_opp.h b/include/linux/pm_opp.h index ef882ed24b0e..483f33e70895 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -180,7 +180,7 @@ static inline int dev_pm_opp_set_supported_hw(struct device *dev, static inline void dev_pm_opp_put_supported_hw(struct device *dev) {} -int dev_pm_opp_register_set_rate_helper(struct device *dev, +static inline int dev_pm_opp_register_set_rate_helper(struct device *dev, int (*set_rate)(struct device *dev, struct dev_pm_set_rate_data *data)) { return -ENOTSUPP;