diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2020-05-05 11:03:52 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-05-05 08:58:35 +0200 |
commit | 50f0bf550f835f0a4251fa99894db09234c12075 (patch) | |
tree | 6e8d3395ce74512bc169c05efa34395e03dac01b /sound/hda/ext | |
parent | 60019d8c650d20a7363285f88f4177dd48d029a7 (diff) | |
download | linux-50f0bf550f835f0a4251fa99894db09234c12075.tar.bz2 |
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/ext')
-rw-r--r-- | sound/hda/ext/hdac_ext_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c index 73bfa71845f6..d0a604c939df 100644 --- a/sound/hda/ext/hdac_ext_bus.c +++ b/sound/hda/ext/hdac_ext_bus.c @@ -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)); } /** |