ALSA: hda: Use dev_to_hdac_dev macro

Use dev_to_hdac_dev() 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-1-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Kai-Heng Feng 2020-05-05 11:03:52 +08:00 committed by Takashi Iwai
parent 60019d8c65
commit 50f0bf550f
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_exit);
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));
}
/**

View File

@ -20,7 +20,7 @@ static int get_codec_vendor_name(struct hdac_device *codec);
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));
}
/**