Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336740
b: refs/heads/master
c: 80126ce
h: refs/heads/master
v: v3
  • Loading branch information
Liam Girdwood authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent fe34c54 commit fcebb45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dde8437d06560366d8988c92b5774039ec703864
refs/heads/master: 80126ce7aeb4e187429681ef8a7785b7dcd7a348
9 changes: 9 additions & 0 deletions trunk/drivers/base/power/opp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/rcupdate.h>
#include <linux/opp.h>
#include <linux/of.h>
#include <linux/export.h>

/*
* Internal data structure organization with the OPP layer library is as
Expand Down Expand Up @@ -161,6 +162,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
Expand Down Expand Up @@ -190,6 +192,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
Expand Down Expand Up @@ -222,6 +225,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
Expand Down Expand Up @@ -269,6 +273,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
Expand Down Expand Up @@ -311,6 +316,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
Expand Down Expand Up @@ -357,6 +363,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
Expand Down Expand Up @@ -561,6 +568,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
Expand All @@ -582,6 +590,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
/**
Expand Down

0 comments on commit fcebb45

Please sign in to comment.