* [PATCH] PM / OPP: Export symbols for module usage.
@ 2012-10-11 13:39 Nishanth Menon
2012-10-11 20:45 ` Kevin Hilman
0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2012-10-11 13:39 UTC (permalink / raw)
To: linux-pm
Cc: Liam Girdwood, Rafael J. Wysocki, Kevin Hilman, linux-kernel,
Nishanth Menon
From: Liam Girdwood <lrg@ti.com>
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>
---
drivers/base/power/opp.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c
index ac993ea..04d443f 100644
--- a/drivers/base/power/opp.c
+++ b/drivers/base/power/opp.c
@@ -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
/**
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] PM / OPP: Export symbols for module usage.
2012-10-11 13:39 [PATCH] PM / OPP: Export symbols for module usage Nishanth Menon
@ 2012-10-11 20:45 ` Kevin Hilman
2012-10-24 21:55 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2012-10-11 20:45 UTC (permalink / raw)
To: Nishanth Menon; +Cc: linux-pm, Liam Girdwood, Rafael J. Wysocki, linux-kernel
Nishanth Menon <nm@ti.com> writes:
> From: Liam Girdwood <lrg@ti.com>
>
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PM / OPP: Export symbols for module usage.
2012-10-11 20:45 ` Kevin Hilman
@ 2012-10-24 21:55 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2012-10-24 21:55 UTC (permalink / raw)
To: Kevin Hilman; +Cc: Nishanth Menon, linux-pm, Liam Girdwood, linux-kernel
On Thursday 11 of October 2012 13:45:05 Kevin Hilman wrote:
> Nishanth Menon <nm@ti.com> writes:
>
> > From: Liam Girdwood <lrg@ti.com>
> >
> > 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>
Applied to linux-pm.git/linux-next as v3.8 material.
Thanks,
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-24 21:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 13:39 [PATCH] PM / OPP: Export symbols for module usage Nishanth Menon
2012-10-11 20:45 ` Kevin Hilman
2012-10-24 21:55 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).