diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2020-05-05 11:03:53 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-05-05 08:59:02 +0200 |
commit | 8c11827bba724046fec50a1f16a205bbea3eeb08 (patch) | |
tree | f31740c6fd7c80f88d58d1467f50e0b30db5fd25 /sound/soc/codecs | |
parent | 50f0bf550f835f0a4251fa99894db09234c12075 (diff) |
ALSA: hda: Use hdac_to_hda_codec macro
Use hdac_to_hda_codec() instead of container_of().
No functional change intended.
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200505030357.28004-2-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/hdac_hda.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/hdac_hda.h b/sound/soc/codecs/hdac_hda.h index 598b07d9b6fe..d0efc5e254ae 100644 --- a/sound/soc/codecs/hdac_hda.h +++ b/sound/soc/codecs/hdac_hda.h @@ -28,10 +28,6 @@ struct hdac_hda_priv { bool need_display_power; }; -#define hdac_to_hda_priv(_hdac) \ - container_of(_hdac, struct hdac_hda_priv, codec.core) -#define hdac_to_hda_codec(_hdac) container_of(_hdac, struct hda_codec, core) - struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void); #endif /* __HDAC_HDA_H__ */ |