]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: core: Simplify API of_phy_simple_xlate() implementation
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 13 Dec 2024 12:36:46 +0000 (20:36 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Dec 2024 14:25:59 +0000 (19:55 +0530)
commite6625db662120572c32ac34c371f9deefb321411
treee95bc3d6c0692dee3d1cd33e39c6dd1bb76039ff
parentb6096751a652a7e7526d4b3d59971a40c3287ef7
phy: core: Simplify API of_phy_simple_xlate() implementation

Simplify of_phy_simple_xlate() implementation by API
class_find_device_by_of_node().

Also correct comments to mark its parameter @dev as unused instead of
@args in passing.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Cc: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20241213-phy_core_fix-v6-6-40ae28f5015a@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-core.c