]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_rt5640: Remove unnecessary string buffers and snprintf calls
authorNariman Etemadi <narimantos@gmail.com>
Wed, 15 Jan 2020 16:46:17 +0000 (17:46 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jan 2020 15:41:57 +0000 (15:41 +0000)
commit39a416338831a4843bfe3ddafaae8962d72b9200
tree5a3a7c273808b7737dd1142c469169c7062e9ecc
parent5edf33ee1e36b4fd54ef28f85983cee01e74fb56
ASoC: Intel: bytcr_rt5640: Remove unnecessary string buffers and snprintf calls

The snprintf calls filling byt_rt56*_codec_aif_name/byt_rt56*_cpu_dai_name
always fill them with the same string ("rt56*-aif2" resp. ssp0-port").
So instead of keeping these buffers around and making codecs->dai_name /
cpus->dai_name point to them, simply update the *->dai_name pointers to
directly point to a string constant containing the desired string.

Signed-off-by: Nariman Etemadi <narimantos@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200115164619.101705-3-hdegoede@redhat.com
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c