]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Use a macro for snd_array iteration loops
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Apr 2018 15:24:56 +0000 (17:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2018 11:41:53 +0000 (13:41 +0200)
commite2c8f76ef07b50a0daea40a011494df95f1af437
treef951cd3875949bf9b330ac2fa62b252003da42f7
parent38c1ac9f6e3231986b6f9eb1b366ff7cfdccd968
ALSA: hda - Use a macro for snd_array iteration loops

Introduce a new helper macro, snd_array_for_each(), to iterate for
each snd_array element.  It slightly improves the readability than
lengthy open codes at each place.

Along with it, add const prefix to some obvious places.

There should be no functional changes by this.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_regmap.c
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_sysfs.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c