diff options
author | Michael Straube <straube.linux@gmail.com> | 2021-08-30 14:15:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-13 08:49:45 +0200 |
commit | f27b211e3a006025306f40c97455d876d2c75fca (patch) | |
tree | df33599d27317934841406eaaa047aee38c8f401 /drivers/staging/r8188eu/include/rtw_eeprom.h | |
parent | 3b5c53bd3ec0995f583727ae9fda4c0035d0744c (diff) | |
download | linux-f27b211e3a006025306f40c97455d876d2c75fca.tar.bz2 |
staging: r8188eu: use ETH_ALEN
Use ETH_ALEN instead of hard-coding the value for the mac_addr buffer
in struct eeprom_priv.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210830121508.6411-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/rtw_eeprom.h')
-rw-r--r-- | drivers/staging/r8188eu/include/rtw_eeprom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_eeprom.h b/drivers/staging/r8188eu/include/rtw_eeprom.h index fb591a764dac..d0c812cf5cc2 100644 --- a/drivers/staging/r8188eu/include/rtw_eeprom.h +++ b/drivers/staging/r8188eu/include/rtw_eeprom.h @@ -99,7 +99,7 @@ struct eeprom_priv { u8 bautoload_fail_flag; u8 bloadfile_fail_flag; u8 bloadmac_fail_flag; - u8 mac_addr[6] __aligned(2); /* PermanentAddress */ + u8 mac_addr[ETH_ALEN] __aligned(2); /* PermanentAddress */ u16 channel_plan; u8 EepromOrEfuse; u8 efuse_eeprom_data[HWSET_MAX_SIZE_512] __aligned(4); |