Skip to content

Commit 4c6da2f

Browse files
jhovoldgregkh
authored andcommitted
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>
1 parent 9391380 commit 4c6da2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/slimbus/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ static struct slim_device *find_slim_device(struct slim_controller *ctrl,
366366
* @ctrl: Controller on which this device will be added/queried
367367
* @e_addr: Enumeration address of the device to be queried
368368
*
369+
* Takes a reference to the embedded struct device which needs to be dropped
370+
* after use.
371+
*
369372
* Return: pointer to a device if it has already reported. Creates a new
370373
* device and returns pointer to it if the device has not yet enumerated.
371374
*/

0 commit comments

Comments
 (0)