]> www.infradead.org Git - users/willy/linux.git/commitdiff
phy: core: Fix documentation of of_phy_get
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 26 Jun 2024 08:09:10 +0000 (12:09 +0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Jul 2024 13:19:32 +0000 (18:49 +0530)
of_phy_put is used for of_phy_get to release the reference count.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20240626080911.203630-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-core.c

index bf6a07590321c5ca045982cbbee42ce12afe8308..f053b525ccffab1629f5e09581a6ebcc35e47f79 100644 (file)
@@ -664,7 +664,7 @@ out_unlock:
  *
  * Returns the phy driver, after getting a refcount to it; or
  * -ENODEV if there is no such phy. The caller is responsible for
- * calling phy_put() to release that count.
+ * calling of_phy_put() to release that count.
  */
 struct phy *of_phy_get(struct device_node *np, const char *con_id)
 {