diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-29 17:13:32 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-02 14:42:42 +0100 |
commit | 7b46160000197209f7ebca8b92bdbb75795c473f (patch) | |
tree | 8655e2cacefc6fa10cfdd4b84a3c697bbbafdc6b /sound/pci/trident | |
parent | ALSA: control: Embed struct device (diff) | |
download | linux-7b46160000197209f7ebca8b92bdbb75795c473f.tar.xz linux-7b46160000197209f7ebca8b92bdbb75795c473f.zip |
ALSA: hwdep: Embed struct device
Like the previous patch, this one embeds the device object into hwdep
object. For a proper object lifecycle, it's freed in the release
callback.
This also allows us to create sysfs entries via passing to the groups
field of the device without explicit function calls. Since each
driver can see the device and touch its groups field directly, we
don't need to delegate in hwdep core any longer. So, remove the
groups field from snd_hwdep, and let the user (in this case only
hda_hwdep.c) modify the device groups.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/trident')
0 files changed, 0 insertions, 0 deletions