diff mbox

[1/2] PM / devfreq: Export helper functions for drivers

Message ID 1405692594-19352-2-git-send-email-punit.agrawal@arm.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Punit Agrawal July 18, 2014, 2:09 p.m. UTC
From: Ørjan Eide <orjan.eide@arm.com>

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>
---
 drivers/devfreq/devfreq.c |    3 +++
 1 file changed, 3 insertions(+)

Comments

Carlos Hernandez Aug. 12, 2014, 1:49 p.m. UTC | #1
QWNrZWQtQnk6IENhcmxvcyBIZXJuYW5kZXogPGNlaEB0aS5jb20+DQoNCi0tLS0tT3JpZ2luYWwg
TWVzc2FnZS0tLS0tDQpGcm9tOiBsaW51eC1rZXJuZWwtb3duZXJAdmdlci5rZXJuZWwub3JnIFtt
YWlsdG86bGludXgta2VybmVsLW93bmVyQHZnZXIua2VybmVsLm9yZ10gT24gQmVoYWxmIE9mIFB1
bml0IEFncmF3YWwNClNlbnQ6IEZyaWRheSwgSnVseSAxOCwgMjAxNCAxMDoxMCBBTQ0KVG86IGxp
bnV4LXBtQHZnZXIua2VybmVsLm9yZzsgbGludXgtc2Ftc3VuZy1zb2NAdmdlci5rZXJuZWwub3Jn
DQpDYzogb3JqYW4uZWlkZUBhcm0uY29tOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOyBs
aW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmc7IE15dW5nSm9vIEhhbTsgS3l1bmdt
aW4gUGFyaw0KU3ViamVjdDogW1BBVENIIDEvMl0gUE0gLyBkZXZmcmVxOiBFeHBvcnQgaGVscGVy
IGZ1bmN0aW9ucyBmb3IgZHJpdmVycw0KDQpGcm9tOiDDmHJqYW4gRWlkZSA8b3JqYW4uZWlkZUBh
cm0uY29tPg0KDQpUaGVzZSB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Bw
X25vdGlmaWVyKHN0cnVjdCBkZXZpY2UgKmRldiwgc3RydWN0IGRldmZyZXEgKmRldmZyZXEpDQog
DQogCXJldHVybiByZXQ7DQogfQ0KK0VYUE9SVF9TWU1CT0woZGV2ZnJlcV9yZWdpc3Rlcl9vcHBf
bm90aWZpZXIpOw0KIA0KIC8qKg0KICAqIGRldmZyZXFfdW5yZWdpc3Rlcl9vcHBfbm90aWZpZXIo
KSAtIEhlbHBlciBmdW5jdGlvbiB0byBzdG9wIGdldHRpbmcgZGV2ZnJlcSBAQCAtMTE2OCw2ICsx
MTcwLDcgQEAgaW50IGRldmZyZXFfdW5yZWdpc3Rlcl9vcHBfbm90aWZpZXIoc3RydWN0IGRldmlj
ZSAqZGV2LCBzdHJ1Y3QgZGV2ZnJlcSAqZGV2ZnJlcSkNCiANCiAJcmV0dXJuIHJldDsNCiB9DQor
RVhQT1JUX1NZTUJPTChkZXZmcmVxX3VucmVnaXN0ZXJfb3BwX25vdGlmaWVyKTsNCiANCiBzdGF0
aWMgdm9pZCBkZXZtX2RldmZyZXFfb3BwX3JlbGVhc2Uoc3RydWN0IGRldmljZSAqZGV2LCB2b2lk
ICpyZXMpICB7DQotLQ0KMS43LjEwLjQNCg0KLS0NClRvIHVuc3Vic2NyaWJlIGZyb20gdGhpcyBs
aXN0OiBzZW5kIHRoZSBsaW5lICJ1bnN1YnNjcmliZSBsaW51eC1rZXJuZWwiIGluIHRoZSBib2R5
IG9mIGEgbWVzc2FnZSB0byBtYWpvcmRvbW9Admdlci5rZXJuZWwub3JnIE1vcmUgbWFqb3Jkb21v
IGluZm8gYXQgIGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbA0KUGxl
YXNlIHJlYWQgdGhlIEZBUSBhdCAgaHR0cDovL3d3dy50dXgub3JnL2xrbWwvDQoNCg0K
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 9f90369..30b538d8 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -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
@@ -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
@@ -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)
 {