]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sfp: Add helper to return the SFP bus name
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 21 Dec 2023 18:00:37 +0000 (19:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jan 2024 18:38:56 +0000 (18:38 +0000)
commitdedd702a35793ab462fce4c737eeba0badf9718e
tree6e8852ae74ba33123aec0b981887511206943053
parent034fcc210349b873ece7356905be5c6ca11eef2a
net: sfp: Add helper to return the SFP bus name

Knowing the bus name is helpful when we want to expose the link topology
to userspace, add a helper to return the SFP bus name.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp-bus.c
include/linux/sfp.h