Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: mdio: remove the 'extern' keyword from function declarations

The 'extern' keyword in headers doesn't have any benefit. Remove them
all from the of_mdio.h header.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Bartosz Golaszewski and committed by
David S. Miller
a0bd96f5 ac3a68d5

+17 -18
+17 -18
include/linux/of_mdio.h
··· 12 12 #include <linux/of.h> 13 13 14 14 #if IS_ENABLED(CONFIG_OF_MDIO) 15 - extern bool of_mdiobus_child_is_phy(struct device_node *child); 16 - extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np); 17 - extern struct phy_device *of_phy_find_device(struct device_node *phy_np); 18 - extern struct phy_device *of_phy_connect(struct net_device *dev, 19 - struct device_node *phy_np, 20 - void (*hndlr)(struct net_device *), 21 - u32 flags, phy_interface_t iface); 22 - extern struct phy_device * 15 + bool of_mdiobus_child_is_phy(struct device_node *child); 16 + int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np); 17 + struct phy_device *of_phy_find_device(struct device_node *phy_np); 18 + struct phy_device * 19 + of_phy_connect(struct net_device *dev, struct device_node *phy_np, 20 + void (*hndlr)(struct net_device *), u32 flags, 21 + phy_interface_t iface); 22 + struct phy_device * 23 23 of_phy_get_and_connect(struct net_device *dev, struct device_node *np, 24 24 void (*hndlr)(struct net_device *)); 25 - struct phy_device *of_phy_attach(struct net_device *dev, 26 - struct device_node *phy_np, u32 flags, 27 - phy_interface_t iface); 25 + struct phy_device * 26 + of_phy_attach(struct net_device *dev, struct device_node *phy_np, 27 + u32 flags, phy_interface_t iface); 28 28 29 - extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); 30 - extern int of_phy_register_fixed_link(struct device_node *np); 31 - extern void of_phy_deregister_fixed_link(struct device_node *np); 32 - extern bool of_phy_is_fixed_link(struct device_node *np); 33 - extern int of_mdiobus_phy_device_register(struct mii_bus *mdio, 34 - struct phy_device *phy, 35 - struct device_node *child, u32 addr); 29 + struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); 30 + int of_phy_register_fixed_link(struct device_node *np); 31 + void of_phy_deregister_fixed_link(struct device_node *np); 32 + bool of_phy_is_fixed_link(struct device_node *np); 33 + int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, 34 + struct device_node *child, u32 addr); 36 35 37 36 static inline int of_mdio_parse_addr(struct device *dev, 38 37 const struct device_node *np)