提交 f0a45816 编写于 作者: C Colin Ian King 提交者: David S. Miller

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: NColin Ian King <colin.king@canonical.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a5eb62f3
...@@ -1706,7 +1706,7 @@ static int m88e1510_get_temp(struct phy_device *phydev, long *temp) ...@@ -1706,7 +1706,7 @@ static int m88e1510_get_temp(struct phy_device *phydev, long *temp)
return ret; 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 oldpage;
int ret; int ret;
...@@ -1737,7 +1737,7 @@ int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp) ...@@ -1737,7 +1737,7 @@ int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp)
return ret; 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 oldpage;
int ret; int ret;
...@@ -1767,7 +1767,7 @@ int m88e1510_set_temp_critical(struct phy_device *phydev, long temp) ...@@ -1767,7 +1767,7 @@ int m88e1510_set_temp_critical(struct phy_device *phydev, long temp)
return ret; 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 oldpage;
int ret; int ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册