Skip to content

Commit

Permalink
PM / devfreq: Export helper functions for drivers
Browse files Browse the repository at this point in the history
These functions are indended for use by drivers and should be available
also when the driver is built as a module.

Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Ãrjan Eide <orjan.eide@arm.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
Ãrjan Eide authored and MyungJoo Ham committed Sep 29, 2014
1 parent adad562 commit bd7e927
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,

return opp;
}
EXPORT_SYMBOL(devfreq_recommended_opp);

/**
* devfreq_register_opp_notifier() - Helper function to get devfreq notified
Expand All @@ -1142,6 +1143,7 @@ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)

return ret;
}
EXPORT_SYMBOL(devfreq_register_opp_notifier);

/**
* devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq
Expand All @@ -1168,6 +1170,7 @@ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)

return ret;
}
EXPORT_SYMBOL(devfreq_unregister_opp_notifier);

static void devm_devfreq_opp_release(struct device *dev, void *res)
{
Expand Down

0 comments on commit bd7e927

Please sign in to comment.