linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] base: soc: Export soc_device_to_device API
@ 2019-09-19 21:13 Murali Nalajala
  2019-09-19 21:32 ` Greg KH
  0 siblings, 1 reply; 17+ messages in thread
From: Murali Nalajala @ 2019-09-19 21:13 UTC (permalink / raw)
  To: gregkh, rafael; +Cc: mnalajal, linux-arm-msm, linux-kernel, bjorn.andersson

If the soc drivers want to add custom sysfs entries it needs to
access "dev" field in "struct soc_device". This can be achieved
by "soc_device_to_device" API. Soc drivers which are built as a
module they need above API to be exported. Otherwise one can
observe compilation issues.

Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
---
 drivers/base/soc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 7c0c5ca..4ad52f6 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -41,6 +41,7 @@ struct device *soc_device_to_device(struct soc_device *soc_dev)
 {
 	return &soc_dev->dev;
 }
+EXPORT_SYMBOL_GPL(soc_device_to_device);
 
 static umode_t soc_attribute_mode(struct kobject *kobj,
 				struct attribute *attr,
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-09-27  5:46 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 21:13 [PATCH] base: soc: Export soc_device_to_device API Murali Nalajala
2019-09-19 21:32 ` Greg KH
2019-09-19 21:53   ` Bjorn Andersson
2019-09-19 21:58     ` Greg KH
2019-09-19 22:14       ` Bjorn Andersson
2019-09-19 22:25         ` Greg KH
2019-09-19 22:40           ` Bjorn Andersson
2019-09-19 22:45             ` Greg KH
2019-09-19 23:39               ` mnalajal
2019-09-20  3:36               ` Bjorn Andersson
2019-09-20  6:10                 ` Greg KH
2019-09-23 21:35                   ` mnalajal
2019-09-24  4:50                     ` Greg KH
2019-09-26 14:33                       ` mnalajal
2019-09-27  5:46                         ` Greg KH
2019-09-19 22:27       ` mnalajal
2019-09-19 22:46         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).