[CPUFREQ] make internal cpufreq_add_dev_* static
No need to export these symbols; make them static. cpufreq_add_dev_policy cpufreq_add_dev_symlink cpufreq_add_dev_interface Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
1cce76c2ac
commit
cf3289d0e7
@ -767,7 +767,8 @@ static struct kobj_type ktype_cpufreq = {
|
|||||||
* 0: Success
|
* 0: Success
|
||||||
* Positive: When we have a managed CPU and the sysfs got symlinked
|
* Positive: When we have a managed CPU and the sysfs got symlinked
|
||||||
*/
|
*/
|
||||||
int cpufreq_add_dev_policy(unsigned int cpu, struct cpufreq_policy *policy,
|
static int cpufreq_add_dev_policy(unsigned int cpu,
|
||||||
|
struct cpufreq_policy *policy,
|
||||||
struct sys_device *sys_dev)
|
struct sys_device *sys_dev)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@ -842,7 +843,8 @@ int cpufreq_add_dev_policy(unsigned int cpu, struct cpufreq_policy *policy,
|
|||||||
|
|
||||||
|
|
||||||
/* symlink affected CPUs */
|
/* symlink affected CPUs */
|
||||||
int cpufreq_add_dev_symlink(unsigned int cpu, struct cpufreq_policy *policy)
|
static int cpufreq_add_dev_symlink(unsigned int cpu,
|
||||||
|
struct cpufreq_policy *policy)
|
||||||
{
|
{
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@ -869,7 +871,8 @@ int cpufreq_add_dev_symlink(unsigned int cpu, struct cpufreq_policy *policy)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cpufreq_add_dev_interface(unsigned int cpu, struct cpufreq_policy *policy,
|
static int cpufreq_add_dev_interface(unsigned int cpu,
|
||||||
|
struct cpufreq_policy *policy,
|
||||||
struct sys_device *sys_dev)
|
struct sys_device *sys_dev)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy new_policy;
|
struct cpufreq_policy new_policy;
|
||||||
|
Loading…
Reference in New Issue
Block a user