ALSA: usb-audio: scarlett2: Move info lookup out of init function
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 21 Jun 2021 18:09:33 +0000 (03:39 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jun 2021 19:36:03 +0000 (21:36 +0200)
commit6fd9d695f305c8e18e8e87c28117c249040641c8
tree4cbc3184b6c1084b5b7a4cb126a0d77337ee0ee8
parentd92b91576e3787659917f32d514de8c4d75631b4
ALSA: usb-audio: scarlett2: Move info lookup out of init function

The info variable is not used by snd_scarlett_gen2_init() except to
pass it to snd_scarlett_gen2_controls_create(), so move the lookup
into that function.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/c4b6d17708e104503d9a2b88f9b3320bb9904cfa.1624294591.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c