Commit 27219a5b authored by Richard Fitzgerald's avatar Richard Fitzgerald Committed by Takashi Iwai

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: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
Message-ID: <20240307111216.45053-1-rf@opensource.cirrus.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent cecc34ae
......@@ -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__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment