ALSA: rawmidi: Embed struct device
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Jan 2015 16:55:52 +0000 (17:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2015 13:42:43 +0000 (14:42 +0100)
commitaee5012fbb77dad6179c44d83d531ad62dd8098a
tree82c169a7d567a52f0f48a5bcdeb027574bebfc6f
parentef46c7af93f98d07cd0ed891f93a26d135785526
ALSA: rawmidi: Embed struct device

Like previous patches, this changes the device management for rawmidi,
embedding the struct device into struct snd_rawmidi.  The required
change is more or less same as hwdep device.

The currently unused dev field is reused as the new embedded struct
field now.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/rawmidi.h
sound/core/rawmidi.c