[PATCH 4/6] slimbus: core: amend slim_get_device() kernel doc

Johan Hovold posted 6 patches 5 days, 7 hours ago
[PATCH 4/6] slimbus: core: amend slim_get_device() kernel doc
Posted by Johan Hovold 5 days, 7 hours ago
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>
---
 drivers/slimbus/core.c | 3 +++
 1 file changed, 3 insertions(+)

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.
  */
-- 
2.51.2