Commit 50f0bf55 authored by Kai-Heng Feng's avatar Kai-Heng Feng Committed by Takashi Iwai

ALSA: hda: Use dev_to_hdac_dev macro

Use dev_to_hdac_dev() instead of container_of().

No functional change intended.
Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200505030357.28004-1-kai.heng.feng@canonical.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 60019d8c
...@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_exit); ...@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_exit);
static void default_release(struct device *dev) static void default_release(struct device *dev)
{ {
snd_hdac_ext_bus_device_exit(container_of(dev, struct hdac_device, dev)); snd_hdac_ext_bus_device_exit(dev_to_hdac_dev(dev));
} }
/** /**
......
...@@ -20,7 +20,7 @@ static int get_codec_vendor_name(struct hdac_device *codec); ...@@ -20,7 +20,7 @@ static int get_codec_vendor_name(struct hdac_device *codec);
static void default_release(struct device *dev) static void default_release(struct device *dev)
{ {
snd_hdac_device_exit(container_of(dev, struct hdac_device, dev)); snd_hdac_device_exit(dev_to_hdac_dev(dev));
} }
/** /**
......
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