]> git.baikalelectronics.ru Git - uboot.git/commitdiff
xilinx: board: Use ETH_ALEN macro for mac address size
authorMichal Simek <michal.simek@amd.com>
Tue, 24 Jan 2023 15:19:26 +0000 (16:19 +0100)
committerMichal Simek <michal.simek@amd.com>
Fri, 27 Jan 2023 07:48:32 +0000 (08:48 +0100)
Use predefined macro for eth_mac legacy format.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/382d4bff370894164fad3c30ac0400b25142b544.1674573561.git.michal.simek@amd.com
board/xilinx/common/board.c

index 52a38147ed26c3091b4d2414646c6866906df22a..6cdb0004f5c99ab43fecec3c12a75bf28240d0aa 100644 (file)
@@ -86,7 +86,7 @@ static struct xilinx_board_description *board_info;
 struct xilinx_legacy_format {
        char board_sn[18]; /* 0x0 */
        char unused0[14]; /* 0x12 */
-       char eth_mac[6]; /* 0x20 */
+       char eth_mac[ETH_ALEN]; /* 0x20 */
        char unused1[170]; /* 0x26 */
        char board_name[11]; /* 0xd0 */
        char unused2[5]; /* 0xdc */