Skip to content

Commit 88152c6

Browse files
PanosPetrasgregkh
authored andcommitted
ALSA: scarlett2: Add missing sentinel initializer field
[ Upstream commit 2428cd6 ] A "-Wmissing-field-initializers" warning was emitted when compiling the module using the W=2 option. There is a sentinel initializer field missing in the end of scarlett2_devices[]. Tested using a Scarlett Solo 4th gen. Fixes: d98cc48 ("ALSA: scarlett2: Move USB IDs out from device_info struct") Signed-off-by: Panagiotis Petrakopoulos <npetrakopoulos2003@gmail.com> Link: https://patch.msgid.link/20260405222548.8903-1-npetrakopoulos2003@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 61cbbcc commit 88152c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/mixer_scarlett2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ static const struct scarlett2_device_entry scarlett2_devices[] = {
22622262
{ USB_ID(0x1235, 0x820c), &clarett_8pre_info, "Clarett+" },
22632263

22642264
/* End of list */
2265-
{ 0, NULL },
2265+
{ 0, NULL, NULL },
22662266
};
22672267

22682268
/* get the starting port index number for a given port type/direction */

0 commit comments

Comments
 (0)