projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2f29c
)
ALSA: led: Use restricted type for iface assignment
author
Takashi Iwai
<tiwai@suse.de>
Tue, 23 Nov 2021 17:02:47 +0000
(18:02 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 23 Nov 2021 17:12:05 +0000
(18:12 +0100)
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: a135dfb5de15 ("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>
sound/core/control_led.c
patch
|
blob
|
history
diff --git
a/sound/core/control_led.c
b/sound/core/control_led.c
index a95332b2b90b0620a3e311852c1dd3b78fea3fa8..207828f30983550c2a526e34a20140f2cadc9a7b 100644
(file)
--- a/
sound/core/control_led.c
+++ b/
sound/core/control_led.c
@@
-509,7
+509,7
@@
static char *parse_string(char *s, char *val, size_t val_size)
return s;
}
-static char *parse_iface(char *s,
unsigned in
t *val)
+static char *parse_iface(char *s,
snd_ctl_elem_iface_
t *val)
{
if (!strncasecmp(s, "card", 4))
*val = SNDRV_CTL_ELEM_IFACE_CARD;