mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
fddi: skfp: constify and use dev_addr_set()
Get it ready for constant netdev->dev_addr. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1e9258c389
commit
2e0566aeb9
3 changed files with 4 additions and 4 deletions
|
@ -470,7 +470,7 @@ void card_stop(struct s_smc *smc);
|
||||||
void init_board(struct s_smc *smc, u_char *mac_addr);
|
void init_board(struct s_smc *smc, u_char *mac_addr);
|
||||||
int init_fplus(struct s_smc *smc);
|
int init_fplus(struct s_smc *smc);
|
||||||
void init_plc(struct s_smc *smc);
|
void init_plc(struct s_smc *smc);
|
||||||
int init_smt(struct s_smc *smc, u_char *mac_addr);
|
int init_smt(struct s_smc *smc, const u_char *mac_addr);
|
||||||
void mac1_irq(struct s_smc *smc, u_short stu, u_short stl);
|
void mac1_irq(struct s_smc *smc, u_short stu, u_short stl);
|
||||||
void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l);
|
void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l);
|
||||||
void mac3_irq(struct s_smc *smc, u_short code_s3u, u_short code_s3l);
|
void mac3_irq(struct s_smc *smc, u_short code_s3u, u_short code_s3l);
|
||||||
|
|
|
@ -925,7 +925,7 @@ static int skfp_ctl_set_mac_address(struct net_device *dev, void *addr)
|
||||||
unsigned long Flags;
|
unsigned long Flags;
|
||||||
|
|
||||||
|
|
||||||
memcpy(dev->dev_addr, p_sockaddr->sa_data, FDDI_K_ALEN);
|
dev_addr_set(dev, p_sockaddr->sa_data);
|
||||||
spin_lock_irqsave(&bp->DriverLock, Flags);
|
spin_lock_irqsave(&bp->DriverLock, Flags);
|
||||||
ResetAdapter(smc);
|
ResetAdapter(smc);
|
||||||
spin_unlock_irqrestore(&bp->DriverLock, Flags);
|
spin_unlock_irqrestore(&bp->DriverLock, Flags);
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "h/fddi.h"
|
#include "h/fddi.h"
|
||||||
#include "h/smc.h"
|
#include "h/smc.h"
|
||||||
|
|
||||||
void init_fddi_driver(struct s_smc *smc, u_char *mac_addr);
|
void init_fddi_driver(struct s_smc *smc, const u_char *mac_addr);
|
||||||
|
|
||||||
/* define global debug variable */
|
/* define global debug variable */
|
||||||
#if defined(DEBUG) && !defined(DEBUG_BRD)
|
#if defined(DEBUG) && !defined(DEBUG_BRD)
|
||||||
|
@ -57,7 +57,7 @@ static void set_oem_spec_val(struct s_smc *smc)
|
||||||
/*
|
/*
|
||||||
* Init SMT
|
* Init SMT
|
||||||
*/
|
*/
|
||||||
int init_smt(struct s_smc *smc, u_char *mac_addr)
|
int init_smt(struct s_smc *smc, const u_char *mac_addr)
|
||||||
/* u_char *mac_addr; canonical address or NULL */
|
/* u_char *mac_addr; canonical address or NULL */
|
||||||
{
|
{
|
||||||
int p ;
|
int p ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue