summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>2017-05-24 10:59:38 +0100
committerMark Brown <broonie@kernel.org>2017-05-24 18:10:51 +0100
commit6298117a5c5c5c5217b59640d6df7fe078fa7d88 (patch)
tree0ad5d3c0277c26c036d33b3ddc4029ac51ca3e3a /sound
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-0-day-6298117a5c5c5c5217b59640d6df7fe078fa7d88.tar.gz
linux-0-day-6298117a5c5c5c5217b59640d6df7fe078fa7d88.tar.xz
ASoC: wm_adsp: Fix type warning in sprintf
The shift member of struct soc_mixer_control is unsigned int. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm_adsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 20695b691aff7..a7dc76030ee44 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -2654,7 +2654,7 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
(struct soc_mixer_control *)kcontrol->private_value;
char preload[32];
- snprintf(preload, ARRAY_SIZE(preload), "DSP%d Preload", mc->shift);
+ snprintf(preload, ARRAY_SIZE(preload), "DSP%u Preload", mc->shift);
dsp->preloaded = ucontrol->value.integer.value[0];