PM / OPP: Export symbols for module usage.
Subsystems (4)
PATCH 1/1 PM / OPP: Export symbols for module usage.
From: Liam Girdwood <[email protected]>
Export the OPP functions for use by driver modules.
Cc "Rafael J. Wysocki" <[email protected]>
Cc Kevin Hilman <[email protected]>
[[email protected]: expansion of functions exported]
Signed-off-by Nishanth Menon <[email protected]>
Signed-off-by Liam Girdwood <[email protected]>
--- drivers/base/power/opp.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/base/power/opp.c +9 -0
@@ -22,6 +22,7 @@#include <linux/rculist.h> #include <linux/rcupdate.h> #include <linux/opp.h> +#include <linux/export.h> /* * Internal data structure organization with the OPP layer library is as
@@ -159,6 +160,7 @@ unsigned long opp_get_voltage(struct opp *opp)return v; } +EXPORT_SYMBOL (opp_get_voltage);/** * opp_get_freq() - Gets the frequency corresponding to an available opp
@@ -188,6 +190,7 @@ unsigned long opp_get_freq(struct opp *opp)return f; } +EXPORT_SYMBOL (opp_get_freq);/** * opp_get_opp_count() - Get number of opps available in the opp list
@@ -220,6 +223,7 @@ int opp_get_opp_count(struct device *dev)return count; } +EXPORT_SYMBOL (opp_get_opp_count);/** * opp_find_freq_exact() - search for an exact frequency
@@ -267,6 +271,7 @@ struct opp *opp_find_freq_exact(struct device *dev, unsigned long freq,return opp; } +EXPORT_SYMBOL (opp_find_freq_exact);/** * opp_find_freq_ceil() - Search for an rounded ceil freq
@@ -309,6 +314,7 @@ struct opp *opp_find_freq_ceil(struct device *dev, unsigned long *freq)return opp; } +EXPORT_SYMBOL (opp_find_freq_ceil);/** * opp_find_freq_floor() - Search for a rounded floor freq
@@ -355,6 +361,7 @@ struct opp *opp_find_freq_floor(struct device *dev, unsigned long *freq)return opp; } +EXPORT_SYMBOL (opp_find_freq_floor);/** * opp_add() - Add an OPP table from a table definitions
@@ -551,6 +558,7 @@ int opp_enable(struct device *dev, unsigned long freq) {return opp_set_availability (dev, freq, true); } +EXPORT_SYMBOL (opp_enable);/** * opp_disable() - Disable a specific OPP
@@ -572,6 +580,7 @@ int opp_disable(struct device *dev, unsigned long freq) {return opp_set_availability (dev, freq, false); } +EXPORT_SYMBOL (opp_disable);#ifdef CONFIG_CPU_FREQ /**
Signature · 1 line
1.7.9.5
Quoted 4 lines · Nishanth Menon
From: Liam Girdwood <[email protected]>
Export the OPP functions for use by driver modules.
Quoted 8 lines
Cc "Rafael J. Wysocki" <[email protected]>Cc Kevin Hilman <[email protected]>[[email protected]: expansion of functions exported]Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Liam Girdwood <[email protected]>
Acked-by Kevin Hilman <[email protected]>
Rafael J. Wysocki
AppliedQuoted 11 lines · On Thursday 11 of October 2012 13:45:05 Kevin Hilman wrote:
Quoted 9 lines · Nishanth Menon
From: Liam Girdwood <[email protected]>
Export the OPP functions for use by driver modules.
Cc "Rafael J. Wysocki" <[email protected]>Cc Kevin Hilman <[email protected]>
Quoted 5 lines
Quoted 3 lines
[[email protected]: expansion of functions exported]Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Liam Girdwood <[email protected]>Acked-by Kevin Hilman <[email protected]>
Applied to linux-pm.git/linux-next as v3.8 material.
Thanks,
Rafael
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.