Skip to content

Commit

Permalink
ALSA: hda: Use dev_to_hdac_dev macro
Browse files Browse the repository at this point in the history
Use dev_to_hdac_dev() instead of container_of().

No functional change intended.

Signed-off-by: Kai-Heng Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
khfeng authored and tiwai committed May 5, 2020
1 parent 60019d8 commit 50f0bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/hda/ext/hdac_ext_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion sound/hda/hdac_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 50f0bf5

Please sign in to comment.