diff options
author | Liam Girdwood <lrg@ti.com> | 2012-10-22 19:27:44 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:36:10 -0500 |
commit | 80126ce7aeb4e187429681ef8a7785b7dcd7a348 (patch) | |
tree | 11ec0607544e8657028b7a4d5dea0226a5811437 /drivers/base/power | |
parent | dde8437d06560366d8988c92b5774039ec703864 (diff) |
PM / OPP: Export symbols for module usage.
Export the OPP functions for use by driver modules.
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Kevin Hilman <khilman@ti.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
[nm@ti.com: expansion of functions exported]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r-- | drivers/base/power/opp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 1211210b15b0..66888861f9eb 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/rcupdate.h> | 23 | #include <linux/rcupdate.h> |
24 | #include <linux/opp.h> | 24 | #include <linux/opp.h> |
25 | #include <linux/of.h> | 25 | #include <linux/of.h> |
26 | #include <linux/export.h> | ||
26 | 27 | ||
27 | /* | 28 | /* |
28 | * Internal data structure organization with the OPP layer library is as | 29 | * Internal data structure organization with the OPP layer library is as |
@@ -161,6 +162,7 @@ unsigned long opp_get_voltage(struct opp *opp) | |||
161 | 162 | ||
162 | return v; | 163 | return v; |
163 | } | 164 | } |
165 | EXPORT_SYMBOL(opp_get_voltage); | ||
164 | 166 | ||
165 | /** | 167 | /** |
166 | * opp_get_freq() - Gets the frequency corresponding to an available opp | 168 | * opp_get_freq() - Gets the frequency corresponding to an available opp |
@@ -190,6 +192,7 @@ unsigned long opp_get_freq(struct opp *opp) | |||
190 | 192 | ||
191 | return f; | 193 | return f; |
192 | } | 194 | } |
195 | EXPORT_SYMBOL(opp_get_freq); | ||
193 | 196 | ||
194 | /** | 197 | /** |
195 | * opp_get_opp_count() - Get number of opps available in the opp list | 198 | * opp_get_opp_count() - Get number of opps available in the opp list |
@@ -222,6 +225,7 @@ int opp_get_opp_count(struct device *dev) | |||
222 | 225 | ||
223 | return count; | 226 | return count; |
224 | } | 227 | } |
228 | EXPORT_SYMBOL(opp_get_opp_count); | ||
225 | 229 | ||
226 | /** | 230 | /** |
227 | * opp_find_freq_exact() - search for an exact frequency | 231 | * opp_find_freq_exact() - search for an exact frequency |
@@ -269,6 +273,7 @@ struct opp *opp_find_freq_exact(struct device *dev, unsigned long freq, | |||
269 | 273 | ||
270 | return opp; | 274 | return opp; |
271 | } | 275 | } |
276 | EXPORT_SYMBOL(opp_find_freq_exact); | ||
272 | 277 | ||
273 | /** | 278 | /** |
274 | * opp_find_freq_ceil() - Search for an rounded ceil freq | 279 | * opp_find_freq_ceil() - Search for an rounded ceil freq |
@@ -311,6 +316,7 @@ struct opp *opp_find_freq_ceil(struct device *dev, unsigned long *freq) | |||
311 | 316 | ||
312 | return opp; | 317 | return opp; |
313 | } | 318 | } |
319 | EXPORT_SYMBOL(opp_find_freq_ceil); | ||
314 | 320 | ||
315 | /** | 321 | /** |
316 | * opp_find_freq_floor() - Search for a rounded floor freq | 322 | * opp_find_freq_floor() - Search for a rounded floor freq |
@@ -357,6 +363,7 @@ struct opp *opp_find_freq_floor(struct device *dev, unsigned long *freq) | |||
357 | 363 | ||
358 | return opp; | 364 | return opp; |
359 | } | 365 | } |
366 | EXPORT_SYMBOL(opp_find_freq_floor); | ||
360 | 367 | ||
361 | /** | 368 | /** |
362 | * opp_add() - Add an OPP table from a table definitions | 369 | * opp_add() - Add an OPP table from a table definitions |
@@ -561,6 +568,7 @@ int opp_enable(struct device *dev, unsigned long freq) | |||
561 | { | 568 | { |
562 | return opp_set_availability(dev, freq, true); | 569 | return opp_set_availability(dev, freq, true); |
563 | } | 570 | } |
571 | EXPORT_SYMBOL(opp_enable); | ||
564 | 572 | ||
565 | /** | 573 | /** |
566 | * opp_disable() - Disable a specific OPP | 574 | * opp_disable() - Disable a specific OPP |
@@ -582,6 +590,7 @@ int opp_disable(struct device *dev, unsigned long freq) | |||
582 | { | 590 | { |
583 | return opp_set_availability(dev, freq, false); | 591 | return opp_set_availability(dev, freq, false); |
584 | } | 592 | } |
593 | EXPORT_SYMBOL(opp_disable); | ||
585 | 594 | ||
586 | #ifdef CONFIG_CPU_FREQ | 595 | #ifdef CONFIG_CPU_FREQ |
587 | /** | 596 | /** |