ALSA: hda - consolidate chip rename functions
authorTakashi Iwai <tiwai@suse.de>
Thu, 1 Oct 2015 15:59:43 +0000 (17:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Oct 2015 12:05:28 +0000 (14:05 +0200)
commitded255be2276d365a91af2de7c7f8e2c233d4fa2
tree4b12a3214ae05ccc3b1b31367c9cec53771cc251
parent3e19fec33a5493f8a627a96ad3494d6c6dc2a624
ALSA: hda - consolidate chip rename functions

A few multiple codec drivers do renaming the chip_name string but all
these are open-coded and some of them have even no error check.  Let's
make common helpers to do it properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/pci/hda/hda_bind.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_sysfs.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_via.c