diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2024-03-07 14:12:15 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-03-07 19:27:39 +0300 |
commit | 27219a5b3285dffb6e2e1b915a0ccdbf07f9a3a0 (patch) | |
tree | 8c43fc29d4a9b70ddab2ac5bed92d7f6cc0636e1 /sound | |
parent | cecc34aeb714df8c61cb5423c3dd4efe14b9c6f9 (diff) | |
download | linux-27219a5b3285dffb6e2e1b915a0ccdbf07f9a3a0.tar.xz |
ALSA: hda: hda_component: Add missing #include guards
Add the conventional include guards around the content of the
hda_component.h header file. This prevents double-declaration of
struct hda_component if the header gets included multiple times.
This isn't causing any problems with current code, so no need to
backport to older kernels.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Message-ID: <20240307111216.45053-1-rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_component.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_component.h b/sound/pci/hda/hda_component.h index deae9dea01b4..a0fcc723483d 100644 --- a/sound/pci/hda/hda_component.h +++ b/sound/pci/hda/hda_component.h @@ -6,6 +6,9 @@ * Cirrus Logic International Semiconductor Ltd. */ +#ifndef __HDA_COMPONENT_H__ +#define __HDA_COMPONENT_H__ + #include <linux/acpi.h> #include <linux/component.h> @@ -82,3 +85,5 @@ static inline void hda_component_manager_unbind(struct hda_codec *cdc, { component_unbind_all(hda_codec_dev(cdc), comps); } + +#endif /* ifndef __HDA_COMPONENT_H__ */ |