Skip to content

Commit 27c464a

Browse files
morimototiwai
authored andcommitted
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
1 parent 483dd12 commit 27c464a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/midi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ static int roland_load_get(struct snd_kcontrol *kcontrol,
20802080
static int roland_load_put(struct snd_kcontrol *kcontrol,
20812081
struct snd_ctl_elem_value *value)
20822082
{
2083-
struct snd_usb_midi *umidi = kcontrol->private_data;
2083+
struct snd_usb_midi *umidi = snd_kcontrol_chip(kcontrol);
20842084
int changed;
20852085

20862086
if (value->value.enumerated.item[0] > 1)

0 commit comments

Comments
 (0)