mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[CPUFREQ] constify cpufreq_driver where possible.
Not all cases are possible due to ->flags being set at runtime on some drivers. Signed-off-by: Dave Jones <[email protected]>
This commit is contained in:
parent
b44755cfaa
commit
aeeddc1435
14 changed files with 17 additions and 17 deletions
|
|
@ -1752,7 +1752,7 @@ static struct notifier_block __cpuinitdata cpufreq_cpu_notifier =
|
|||
* (and isn't unregistered in the meantime).
|
||||
*
|
||||
*/
|
||||
int cpufreq_register_driver(struct cpufreq_driver *driver_data)
|
||||
int cpufreq_register_driver(const struct cpufreq_driver *driver_data)
|
||||
{
|
||||
unsigned long flags;
|
||||
int ret;
|
||||
|
|
@ -1817,7 +1817,7 @@ EXPORT_SYMBOL_GPL(cpufreq_register_driver);
|
|||
* Returns zero if successful, and -EINVAL if the cpufreq_driver is
|
||||
* currently not initialised.
|
||||
*/
|
||||
int cpufreq_unregister_driver(struct cpufreq_driver *driver)
|
||||
int cpufreq_unregister_driver(const struct cpufreq_driver *driver)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue