projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36af195
)
spmi: document spmi_device_from_of() refcounting
author
Johan Hovold
<johan+linaro@kernel.org>
Tue, 3 Oct 2023 15:29:26 +0000
(17:29 +0200)
committer
Lee Jones
<lee@kernel.org>
Wed, 1 Nov 2023 10:02:18 +0000
(10:02 +0000)
Add a comment documenting that the spmi_device_from_of() takes a
reference to the embedded struct device that needs to be dropped after
use.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link:
https://lore.kernel.org/r/20231003152927.15000-5-johan+linaro@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/spmi/spmi.c
patch
|
blob
|
history
diff --git
a/drivers/spmi/spmi.c
b/drivers/spmi/spmi.c
index 7313d4c18a04338490b26d71f1d6700f28448da0..ca2fd4d72fa6ad635903b920b89c8fafee76a8c4 100644
(file)
--- a/
drivers/spmi/spmi.c
+++ b/
drivers/spmi/spmi.c
@@
-392,6
+392,9
@@
static struct bus_type spmi_bus_type = {
*
* @np: device node
*
+ * Takes a reference to the embedded struct device which needs to be dropped
+ * after use.
+ *
* Returns the struct spmi_device associated with a device node or NULL.
*/
struct spmi_device *spmi_device_from_of(struct device_node *np)