Skip to content

Commit 7c72665

Browse files
committed
ALSA: led: Use restricted type for iface assignment
Fix a sparse warning that complains about the inconsistent type assignment for iface, which is a restricted type of snd_ctl_elem_iface_t. Fixes: a135dfb ("ALSA: led control - add sysfs kcontrol LED marking layer") Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/202111201028.xduVYgH5-lkp@intel.com Link: https://lore.kernel.org/r/20211123170247.2962-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent de2f29c commit 7c72665

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/core/control_led.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static char *parse_string(char *s, char *val, size_t val_size)
509509
return s;
510510
}
511511

512-
static char *parse_iface(char *s, unsigned int *val)
512+
static char *parse_iface(char *s, snd_ctl_elem_iface_t *val)
513513
{
514514
if (!strncasecmp(s, "card", 4))
515515
*val = SNDRV_CTL_ELEM_IFACE_CARD;

0 commit comments

Comments
 (0)