diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-02 17:13:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-05 02:54:38 +0300 |
commit | f0a4581605802cc136f68cfcf325035054fa92a3 (patch) | |
tree | 9070fb7c0e95c49e590df29e88ed359dcbbc868d /drivers/net/phy/marvell.c | |
parent | a5eb62f3cb39fdd32e86d4b722e5b44c38e08890 (diff) | |
download | linux-f0a4581605802cc136f68cfcf325035054fa92a3.tar.xz |
net: phy: marvell: make some functions static
functions m88e1510_get_temp_critical, m88e1510_set_temp_critical and
m88e1510_get_temp_alarm can be made static as they not need to be
in global scope.
Cleans up sparse warnings:
"symbol 'm88e1510_get_temp_alarm' was not declared. Should it be static?"
"symbol 'm88e1510_get_temp_critical' was not declared. Should it be
static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell.c')
-rw-r--r-- | drivers/net/phy/marvell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 1a72bebc588a..4c5246fed69b 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -1706,7 +1706,7 @@ error: return ret; } -int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp) +static int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp) { int oldpage; int ret; @@ -1737,7 +1737,7 @@ error: return ret; } -int m88e1510_set_temp_critical(struct phy_device *phydev, long temp) +static int m88e1510_set_temp_critical(struct phy_device *phydev, long temp) { int oldpage; int ret; @@ -1767,7 +1767,7 @@ error: return ret; } -int m88e1510_get_temp_alarm(struct phy_device *phydev, long *alarm) +static int m88e1510_get_temp_alarm(struct phy_device *phydev, long *alarm) { int oldpage; int ret; |