diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-23 01:20:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-24 14:59:44 +0200 |
commit | 86466cbed1735969606094b87c41412b9c78f222 (patch) | |
tree | d63ea60abc144f26e0f1daaa30d511230a08c9aa /drivers/net/phy/dp83869.c | |
parent | net: rtnetlink: use __dev_addr_set() (diff) | |
download | linux-86466cbed1735969606094b87c41412b9c78f222.tar.xz linux-86466cbed1735969606094b87c41412b9c78f222.zip |
net: phy: constify netdev->dev_addr references
netdev->dev_addr will become a const soon(ish),
constify the local variables referring to it.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/dp83869.c')
-rw-r--r-- | drivers/net/phy/dp83869.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index 755220c6451f..7113925606f7 100644 --- a/drivers/net/phy/dp83869.c +++ b/drivers/net/phy/dp83869.c @@ -246,7 +246,7 @@ static int dp83869_set_wol(struct phy_device *phydev, { struct net_device *ndev = phydev->attached_dev; int val_rxcfg, val_micr; - u8 *mac; + const u8 *mac; int ret; val_rxcfg = phy_read_mmd(phydev, DP83869_DEVADDR, DP83869_RXFCFG); @@ -264,7 +264,7 @@ static int dp83869_set_wol(struct phy_device *phydev, if (wol->wolopts & WAKE_MAGIC || wol->wolopts & WAKE_MAGICSECURE) { - mac = (u8 *)ndev->dev_addr; + mac = (const u8 *)ndev->dev_addr; if (!is_valid_ether_addr(mac)) return -EINVAL; |