From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH 7/8] PM / OPP: Allow platform specific custom opp_set_rate() callbacks Date: Wed, 5 Oct 2016 06:59:29 +0530 Message-ID: <20161005012929.GF4664@vireshk-i7> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: 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) Content-Disposition: inline In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org 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 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: 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; -- viresh