summaryrefslogtreecommitdiff
path: root/drivers/net/fjes/fjes_hw.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-21 06:12:09 -0700
committerJakub Kicinski <kuba@kernel.org>2021-10-22 10:16:07 -0700
commited088907563da490d227a734076d705acc0d236c (patch)
tree32667fc5f774e448847c797bf1b87cfb8ed06456 /drivers/net/fjes/fjes_hw.c
parent2e0566aeb9ff83db9fb22bf6f0b994f03377b038 (diff)
net: fjes: constify and use eth_hw_addr_set()
Get it ready for constant netdev->dev_addr. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/fjes/fjes_hw.c')
-rw-r--r--drivers/net/fjes/fjes_hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fjes/fjes_hw.c b/drivers/net/fjes/fjes_hw.c
index 065bb0a40b1d..704e949484d0 100644
--- a/drivers/net/fjes/fjes_hw.c
+++ b/drivers/net/fjes/fjes_hw.c
@@ -137,7 +137,8 @@ static void fjes_hw_free_epbuf(struct epbuf_handler *epbh)
epbh->ring = NULL;
}
-void fjes_hw_setup_epbuf(struct epbuf_handler *epbh, u8 *mac_addr, u32 mtu)
+void fjes_hw_setup_epbuf(struct epbuf_handler *epbh, const u8 *mac_addr,
+ u32 mtu)
{
union ep_buffer_info *info = epbh->info;
u16 vlan_id[EP_BUFFER_SUPPORT_VLAN_MAX];