Re: [RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name

From
Andrew Lunn <andrew@lunn.ch>
Date
2023-11-21 01:01:04
Also in
linux-arm-kernel, lkml
Reply to
Maxime Chevallier, 2023-11-17
quoted hunk ↗ jump to hunk
+const char *sfp_get_name(struct sfp_bus *bus)
+{
+	if (bus->sfp_dev)
+		return dev_name(bus->sfp_dev);
+
+	return NULL;
+}
Locking? Do you assume rtnl? Does this function need to take rtnl?

	 Andrew
Thread (25 messages) 25 messages, 3 authors, last reply 2023-11-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help