Commit 51b2c425 authored by Geliang Tang's avatar Geliang Tang Committed by Mark Brown

ASoC: hdac_hdmi: use dev_to_hdac_dev and to_ehdac_device

Use dev_to_hdac_dev() and to_ehdac_device() instead of open-coding.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Reviewed-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 940a5a01
...@@ -67,9 +67,9 @@ struct hdac_hdmi_priv { ...@@ -67,9 +67,9 @@ struct hdac_hdmi_priv {
static inline struct hdac_ext_device *to_hda_ext_device(struct device *dev) static inline struct hdac_ext_device *to_hda_ext_device(struct device *dev)
{ {
struct hdac_device *hdac = container_of(dev, struct hdac_device, dev); struct hdac_device *hdac = dev_to_hdac_dev(dev);
return container_of(hdac, struct hdac_ext_device, hdac); return to_ehdac_device(hdac);
} }
static int hdac_hdmi_setup_stream(struct hdac_ext_device *hdac, static int hdac_hdmi_setup_stream(struct hdac_ext_device *hdac,
......
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