ALSA: scarlett2: Remove scarlett2_config_sets array
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:23:40 +0000 (05:53 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commitcbd6f148aa555c1383bef27dd003e1a2f1670e82
treee1ae843f59d62d1b6c1d49674b3db9f843cb7d04
parentc0a7e1d859e76b121afe177f1ca04e121ecbb27d
ALSA: scarlett2: Remove scarlett2_config_sets array

Replace array index into config sets with a pointer to a config set.
Copy the config_set pointer to the scarlett2_data struct.

This simplifies both the definition and use of the config sets.

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