ALSA: hda - Fix a sparse warning about snd_ctl_elem_iface_t
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:00:51 +0000 (23:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:31:41 +0000 (08:31 +0200)
commitebd836edfc4324da016ce0c09f809f882a133f50
tree7679fd1a4ffdaa6e618dcaf0639630dafa3a3831
parentdcda6f7853c52c42d242b474bfbd1d17d02c8870
ALSA: hda - Fix a sparse warning about snd_ctl_elem_iface_t

The knew->iface field is in snd_ctl_elem_iface_t, which is with
__bitwise, hence it can't be converted implicitly from integer.
Give an explicit cast for the invalid type.

Spotted by sparse:
  sound/pci/hda/hda_codec.c:3280:25: warning: restricted snd_ctl_elem_iface_t degrades to integer

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c