diff options
author | Jan Samek <jan.samek@siemens.com> | 2023-04-27 10:39:27 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-04-28 13:38:33 +0000 |
commit | edda0f94e58a510f6e13bf632c6dc7294840ac43 (patch) | |
tree | ee053ebe935070bd8ccb068ca031cd3fa6f0129f /src/drivers/i2c/rt5663/chip.h | |
parent | 8ba2ecf2b40b9bffc20ccad0c76ba2eefcfd1396 (diff) |
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 <jan.samek@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74749
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/drivers/i2c/rt5663/chip.h')
-rw-r--r-- | src/drivers/i2c/rt5663/chip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/i2c/rt5663/chip.h b/src/drivers/i2c/rt5663/chip.h index 49b107cb1c..1c177b363b 100644 --- a/src/drivers/i2c/rt5663/chip.h +++ b/src/drivers/i2c/rt5663/chip.h @@ -4,6 +4,9 @@ * Realtek RT5663 audio codec devicetree bindings */ +#ifndef __DRIVERS_I2C_RT5663_CHIP_H__ +#define __DRIVERS_I2C_RT5663_CHIP_H__ + #include <acpi/acpi_device.h> #include <stdint.h> @@ -23,3 +26,5 @@ struct drivers_i2c_rt5663_config { uint32_t dc_offset_l_manual_mic; uint32_t dc_offset_r_manual_mic; }; + +#endif /* __DRIVERS_I2C_RT5663_CHIP_H__ */ |