summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2025-11-26 15:53:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 16:43:04 +0100
commit4c6da2fdc811391c4a5e594c6e976803b54198b7 (patch)
treebc61aa9435c075e60153ef45f9da45a936a11c23
parent9391380eb91ea5ac792aae9273535c8da5b9aa01 (diff)
slimbus: core: amend slim_get_device() kernel doc
Add a comment to clarify that slim_get_device() takes a reference to the embedded struct device of the returned slimbus device. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20251126145329.5022-5-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/slimbus/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c
index b4ab9a5d44b3..9402950e7ebd 100644
--- a/drivers/slimbus/core.c
+++ b/drivers/slimbus/core.c
@@ -366,6 +366,9 @@ static struct slim_device *find_slim_device(struct slim_controller *ctrl,
* @ctrl: Controller on which this device will be added/queried
* @e_addr: Enumeration address of the device to be queried
*
+ * Takes a reference to the embedded struct device which needs to be dropped
+ * after use.
+ *
* Return: pointer to a device if it has already reported. Creates a new
* device and returns pointer to it if the device has not yet enumerated.
*/