]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: led: Use restricted type for iface assignment
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Nov 2021 17:02:47 +0000 (18:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Nov 2021 17:12:05 +0000 (18:12 +0100)
commit5a847a2577111c41dfb051d7410477c58d21cbac
tree940d46251b4b4c4745af484a299594e13765f9cc
parent0131baae2dd3e6381c62aca45eef77fd0115128f
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: 6d3b0c0c2116 ("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