ALSA: hwdep: Take private_data as drvdata for sysfs
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 09:00:58 +0000 (10:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 11:12:50 +0000 (12:12 +0100)
commitf806bdb2f7235907fcd310e6d147b3bcd281fa97
treee0ec1378953e1cc742ca6c67d9fa8f69500f55b0
parentcaa751bad444268d756b48ca03d7cceda3430cc8
ALSA: hwdep: Take private_data as drvdata for sysfs

For referring to a different object from sysfs ops, take hwdep
private_data as stored via dev_set_drvdata() at creating the device
object.  In that way, the same sysfs ops can be used by different
device types.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/hwdep.c
sound/pci/hda/hda_hwdep.c