diff options
author | Marek Behún <kabel@kernel.org> | 2024-08-31 11:20:36 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-09-02 09:42:09 +0000 |
commit | c3358e1017411fae7d379fbb88f8265b11e9597d (patch) | |
tree | ffa43950df89bc4db7023c3ac94a0664f88c1f11 /drivers/firmware | |
parent | 29d258542f900a55791ec2ca8b15e4f9da083a14 (diff) |
firmware: turris-mox-rwtm: Use ETH_ALEN instead of hardcoded 6
Use the ETH_ALEN macro instead of hardcoded 6 for MAC address length.
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240831092050.23093-3-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/turris-mox-rwtm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/turris-mox-rwtm.c b/drivers/firmware/turris-mox-rwtm.c index 67d7b65da174..d3ce093d4835 100644 --- a/drivers/firmware/turris-mox-rwtm.c +++ b/drivers/firmware/turris-mox-rwtm.c @@ -10,6 +10,7 @@ #include <linux/debugfs.h> #include <linux/dma-mapping.h> #include <linux/hw_random.h> +#include <linux/if_ether.h> #include <linux/mailbox_client.h> #include <linux/minmax.h> #include <linux/module.h> @@ -69,7 +70,7 @@ struct mox_rwtm { int has_board_info; u64 serial_number; int board_version, ram_size; - u8 mac_address1[6], mac_address2[6]; + u8 mac_address1[ETH_ALEN], mac_address2[ETH_ALEN]; /* public key burned in eFuse */ int has_pubkey; |