diff mbox series

[11/20] net: phy: fixed: Make driver ops static

Message ID 20210302153451.19440-12-bmeng.cn@gmail.com
State Superseded
Delegated to: Priyanka Jain
Headers show
Series ppc: qemu: Add eTSEC support | expand

Commit Message

Bin Meng March 2, 2021, 3:34 p.m. UTC
The PHY driver ops should be made static.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 drivers/net/phy/fixed.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Ramon Fried March 2, 2021, 5:47 p.m. UTC | #1
On Tue, Mar 2, 2021 at 5:36 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> The PHY driver ops should be made static.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  drivers/net/phy/fixed.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
> index 1a38c29469..2a41baf8d7 100644
> --- a/drivers/net/phy/fixed.c
> +++ b/drivers/net/phy/fixed.c
> @@ -15,7 +15,7 @@
>
>  DECLARE_GLOBAL_DATA_PTR;
>
> -int fixedphy_probe(struct phy_device *phydev)
> +static int fixedphy_probe(struct phy_device *phydev)
>  {
>         struct fixed_link *priv;
>         int ofnode = phydev->addr;
> @@ -48,7 +48,7 @@ int fixedphy_probe(struct phy_device *phydev)
>         return 0;
>  }
>
> -int fixedphy_startup(struct phy_device *phydev)
> +static int fixedphy_startup(struct phy_device *phydev)
>  {
>         struct fixed_link *priv = phydev->priv;
>
> @@ -61,7 +61,7 @@ int fixedphy_startup(struct phy_device *phydev)
>         return 0;
>  }
>
> -int fixedphy_shutdown(struct phy_device *phydev)
> +static int fixedphy_shutdown(struct phy_device *phydev)
>  {
>         return 0;
>  }
> --
> 2.25.1
>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
diff mbox series

Patch

diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
index 1a38c29469..2a41baf8d7 100644
--- a/drivers/net/phy/fixed.c
+++ b/drivers/net/phy/fixed.c
@@ -15,7 +15,7 @@ 
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int fixedphy_probe(struct phy_device *phydev)
+static int fixedphy_probe(struct phy_device *phydev)
 {
 	struct fixed_link *priv;
 	int ofnode = phydev->addr;
@@ -48,7 +48,7 @@  int fixedphy_probe(struct phy_device *phydev)
 	return 0;
 }
 
-int fixedphy_startup(struct phy_device *phydev)
+static int fixedphy_startup(struct phy_device *phydev)
 {
 	struct fixed_link *priv = phydev->priv;
 
@@ -61,7 +61,7 @@  int fixedphy_startup(struct phy_device *phydev)
 	return 0;
 }
 
-int fixedphy_shutdown(struct phy_device *phydev)
+static int fixedphy_shutdown(struct phy_device *phydev)
 {
 	return 0;
 }