summaryrefslogtreecommitdiffstats
path: root/sound/hda/hdac_device.c
diff options
context:
space:
mode:
authorKai-Heng Feng <kai.heng.feng@canonical.com>2020-05-05 05:03:52 +0200
committerTakashi Iwai <tiwai@suse.de>2020-05-05 08:58:35 +0200
commit50f0bf550f835f0a4251fa99894db09234c12075 (patch)
tree6e8d3395ce74512bc169c05efa34395e03dac01b /sound/hda/hdac_device.c
parentALSA: hda/tegra: workaround playback failure on Tegra194 (diff)
downloadlinux-50f0bf550f835f0a4251fa99894db09234c12075.tar.xz
linux-50f0bf550f835f0a4251fa99894db09234c12075.zip
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>
Diffstat (limited to 'sound/hda/hdac_device.c')
-rw-r--r--sound/hda/hdac_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c
index e3119f5cb0d5..333220f0f8af 100644
--- a/sound/hda/hdac_device.c
+++ b/sound/hda/hdac_device.c
@@ -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));
}
/**