From: Marek Behún Date: Sat, 31 Aug 2024 09:20:36 +0000 (+0200) Subject: firmware: turris-mox-rwtm: Use ETH_ALEN instead of hardcoded 6 X-Git-Tag: v6.12-rc1~187^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3358e1017411fae7d379fbb88f8265b11e9597d;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Ilpo Järvinen Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20240831092050.23093-3-kabel@kernel.org Signed-off-by: Arnd Bergmann --- diff --git a/drivers/firmware/turris-mox-rwtm.c b/drivers/firmware/turris-mox-rwtm.c index 67d7b65da1741..d3ce093d48350 100644 --- a/drivers/firmware/turris-mox-rwtm.c +++ b/drivers/firmware/turris-mox-rwtm.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -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;