mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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>
This commit is contained in:
parent
3104fa3081
commit
0ec09ac2ce
2 changed files with 49 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue