net: wan: framer: Simplify API framer_provider_simple_of_xlate() implementation
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 13 Dec 2024 12:09:11 +0000 (20:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Dec 2024 22:13:56 +0000 (14:13 -0800)
commitdcacb364772eb463bde225176086bd7738b7102f
tree8d96ddaa5e07d575fee292ee534a0d5cf12c3f72
parent734ff310d38cfdc27a1b3eac9fa83ff754356ae7
net: wan: framer: Simplify API framer_provider_simple_of_xlate() implementation

Simplify framer_provider_simple_of_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.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241213-net_fix-v2-1-6d06130d630f@quicinc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wan/framer/framer-core.c