From edda0f94e58a510f6e13bf632c6dc7294840ac43 Mon Sep 17 00:00:00 2001 From: Jan Samek Date: Thu, 27 Apr 2023 10:39:27 +0200 Subject: treewide: Add missing include guards to chip.h Some of the chip.h files in the tree are missing the include guards. This patch adds them in order to avoid potential redefinions of symbols contained in these headers, when they are included multiple times in static.c generated by sconfig. Change-Id: I550a514e72a8dd4db602e7ceffccd81aa36446e3 Signed-off-by: Jan Samek Reviewed-on: https://review.coreboot.org/c/coreboot/+/74749 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/drivers/net/phy/m88e1512/chip.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/net') diff --git a/src/drivers/net/phy/m88e1512/chip.h b/src/drivers/net/phy/m88e1512/chip.h index f1e313ba97..4af3b4d6f6 100644 --- a/src/drivers/net/phy/m88e1512/chip.h +++ b/src/drivers/net/phy/m88e1512/chip.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef __DRIVERS_NET_PHY_M88E1512_CHIP_H__ +#define __DRIVERS_NET_PHY_M88E1512_CHIP_H__ + #include "m88e1512.h" struct drivers_net_phy_m88e1512_config { @@ -15,3 +18,5 @@ struct drivers_net_phy_m88e1512_config { unsigned char pmos_val; /* Set PMOS calibration value */ unsigned char nmos_val; /* Set NMOS calibration value */ }; + +#endif /* __DRIVERS_NET_PHY_M88E1512_CHIP_H__ */ -- cgit v1.2.3