mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Cpufreq-dt currently exports no functions. This means that drivers that are based on cpufreq-dt have no way of establishing a depmod dependency on it. This helper allows that link. Signed-off-by: Aaron Kling <webgeek1234@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
27 lines
679 B
C
27 lines
679 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2016 Linaro
|
|
* Viresh Kumar <viresh.kumar@linaro.org>
|
|
*/
|
|
|
|
#ifndef __CPUFREQ_DT_H__
|
|
#define __CPUFREQ_DT_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct cpufreq_policy;
|
|
|
|
struct cpufreq_dt_platform_data {
|
|
bool have_governor_per_policy;
|
|
|
|
unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
|
|
unsigned int index);
|
|
int (*target_intermediate)(struct cpufreq_policy *policy,
|
|
unsigned int index);
|
|
int (*suspend)(struct cpufreq_policy *policy);
|
|
int (*resume)(struct cpufreq_policy *policy);
|
|
};
|
|
|
|
struct platform_device *cpufreq_dt_pdev_register(struct device *dev);
|
|
|
|
#endif /* __CPUFREQ_DT_H__ */
|