aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/devfreq.h
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-11-18 14:49:02 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2016-01-13 17:30:32 +0900
commit0ec09ac2cebe9769491a470c33edff0f873ff79d (patch)
treeb6e558e0e0c6007eeb1b94a21c213cddd762018c /include/linux/devfreq.h
parentPM / devfreq: Add show_one macro to delete the duplicate code (diff)
downloadwireguard-linux-0ec09ac2cebe9769491a470c33edff0f873ff79d.tar.xz
wireguard-linux-0ec09ac2cebe9769491a470c33edff0f873ff79d.zip
PM / devfreq: Set the freq_table of devfreq device
This patch initialize the freq_table array of each devfreq device by using the devfreq_set_freq_table(). If freq_table is NULL, the devfreq framework is not able to support the frequency transtion information through sysfs. The OPP core uses the integer type for the number of opps in the opp list and uses the 'unsigned long' type for each frequency. So, this patch modifies the type of some variable as following: - the type of freq_table : unsigned int -> unsigned long - the type of max_state : unsigned int -> int - Corrected types, format strings, mutex usages by MyungJoo Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r--include/linux/devfreq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h
index 68030e22af35..6fa02a20eb63 100644
--- a/include/linux/devfreq.h
+++ b/include/linux/devfreq.h
@@ -89,7 +89,7 @@ struct devfreq_dev_profile {
int (*get_cur_freq)(struct device *dev, unsigned long *freq);
void (*exit)(struct device *dev);
- unsigned int *freq_table;
+ unsigned long *freq_table;
unsigned int max_state;
};