summaryrefslogtreecommitdiff
path: root/include/sound/rawmidi.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-08-16 19:02:48 +0300
committerTakashi Iwai <tiwai@suse.de>2023-08-17 10:24:08 +0300
commitea29a02fd802d8df8202819f0a50d4ebb960bb2a (patch)
tree6fb9fc708c0e8cbfbb25ab5c091922d1b8d3560a /include/sound/rawmidi.h
parent897c8882df5875fe0bbc3e93ee8e9ba4a2c6ca0d (diff)
downloadlinux-ea29a02fd802d8df8202819f0a50d4ebb960bb2a.tar.xz
ALSA: rawmidi: Don't embed device
This patch detaches the struct device from the snd_rawmidi object by allocating via snd_device_alloc(), just like done for other devices. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Curtis Malainey <cujomalainey@chromium.org> Tested-by: Curtis Malainey <cujomalainey@chromium.org> Link: https://lore.kernel.org/r/20230816160252.23396-6-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/rawmidi.h')
-rw-r--r--include/sound/rawmidi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h
index b0197b1d1fe4..f31cabf0158c 100644
--- a/include/sound/rawmidi.h
+++ b/include/sound/rawmidi.h
@@ -135,7 +135,7 @@ struct snd_rawmidi {
struct mutex open_mutex;
wait_queue_head_t open_wait;
- struct device dev;
+ struct device *dev;
struct snd_info_entry *proc_entry;