From: Takashi Iwai Subject: Re: [PATCH 2/2] ASoC: intel - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN Date: Sat, 18 Apr 2015 09:03:10 +0200 Message-ID: References: <1429291413-30668-1-git-send-email-vinod.koul@intel.com> <1429291413-30668-2-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A1F722614EE for ; Sat, 18 Apr 2015 09:03:10 +0200 (CEST) In-Reply-To: <1429291413-30668-2-git-send-email-vinod.koul@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org, broonie@kernel.org List-Id: alsa-devel@alsa-project.org At Fri, 17 Apr 2015 22:53:33 +0530, Vinod Koul wrote: > > 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 I leave this to Mark. thanks, Takashi > --- > sound/soc/intel/atom/sst-atom-controls.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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; > }; > > -- > 1.7.9.5 >