From: Kuninori Morimoto Date: Wed, 7 May 2025 04:59:50 +0000 (+0000) Subject: ALSA: usb: midi: use snd_kcontrol_chip() X-Git-Tag: v6.16-rc1~170^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c464a88610fc1e743cc9820e2455361fb20d3b;p=thirdparty%2Fkernel%2Flinux.git ALSA: usb: midi: use snd_kcontrol_chip() We can use snd_kcontrol_chip(). Let's use it. Signed-off-by: Kuninori Morimoto Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/87o6w5aud5.wl-kuninori.morimoto.gx@renesas.com --- diff --git a/sound/usb/midi.c b/sound/usb/midi.c index dcdd7e9e1ae97..5f98276113d7d 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)