aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-04-17 22:53:33 +0530
committerMark Brown <broonie@kernel.org>2015-04-27 15:43:43 +0100
commit8c359a9f36796603240863c766a9704e2ad9aa4c (patch)
tree684ff7257b7cb7aa4a32e989ff1464f97630940b /sound
parentASoC: Intel: Remove invalid kfree of devm allocated data (diff)
downloadlinux-dev-8c359a9f36796603240863c766a9704e2ad9aa4c.tar.xz
linux-dev-8c359a9f36796603240863c766a9704e2ad9aa4c.zip
ASoC: intel - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN
we have defined SNDRV_CTL_ELEM_ID_NAME_MAXLEN as size of name array so use this define instead of numeric value Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/intel/atom/sst-atom-controls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst-atom-controls.h b/sound/soc/intel/atom/sst-atom-controls.h
index daecc58f28af..c55f76a535b3 100644
--- a/sound/soc/intel/atom/sst-atom-controls.h
+++ b/sound/soc/intel/atom/sst-atom-controls.h
@@ -695,7 +695,7 @@ struct sst_gain_mixer_control {
u16 module_id;
u16 pipe_id;
u16 task_id;
- char pname[44];
+ char pname[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
struct snd_soc_dapm_widget *w;
};