]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Fix build warning
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 25 Mar 2015 11:22:35 +0000 (11:22 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 25 Mar 2015 15:26:35 +0000 (08:26 -0700)
commita3fc0291d690b0848e6d0d4d329eb1fe07b4f98b
tree0b7b38f34c1202433450b9d0f26220c7eb74d0fc
parentd35e3d70033e1f46b6504256de31e58dddb75b26
ASoC: dapm: Fix build warning

commit d35e3d70033e ("ASoC: dapm: add code to configure dai link
parameters") introduced the following build warning:

sound/soc/soc-dapm.c: In function 'snd_soc_dapm_new_pcm':
sound/soc/soc-dapm.c:3389:4: warning: passing argument 1 of 'snprintf'
discards 'const' qualifier from pointer target type
snprintf(w_param_text[count], len,

This patch fixes this by switching to using devm_kasprintf. This also
saves a couple of lines of code.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c