diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2025-05-07 04:59:50 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-05-08 11:53:34 +0200 |
commit | 27c464a88610fc1e743cc9820e2455361fb20d3b (patch) | |
tree | acfacd119884f8dc1732d891ab47e622974440a3 /sound/usb | |
parent | 483dd12dbe34c6d4e71d4d543bcb1292bcb62d08 (diff) |
ALSA: usb: midi: use snd_kcontrol_chip()
We can use snd_kcontrol_chip(). Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/87o6w5aud5.wl-kuninori.morimoto.gx@renesas.com
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index dcdd7e9e1ae9..5f98276113d7 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -2080,7 +2080,7 @@ static int roland_load_get(struct snd_kcontrol *kcontrol, static int roland_load_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *value) { - struct snd_usb_midi *umidi = kcontrol->private_data; + struct snd_usb_midi *umidi = snd_kcontrol_chip(kcontrol); int changed; if (value->value.enumerated.item[0] > 1) |