diff mbox

[2/2] ASoC: intel - use SNDRV_CTL_ELEM_ID_NAME_MAXLEN

Message ID 1429291413-30668-2-git-send-email-vinod.koul@intel.com (mailing list archive)
State Accepted
Commit 8c359a9f36796603240863c766a9704e2ad9aa4c
Headers show

Commit Message

Vinod Koul April 17, 2015, 5:23 p.m. UTC
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>
---
 sound/soc/intel/atom/sst-atom-controls.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai April 18, 2015, 7:03 a.m. UTC | #1
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 <vinod.koul@intel.com>

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
>
Mark Brown April 18, 2015, 11:59 a.m. UTC | #2
On Fri, Apr 17, 2015 at 10:53:33PM +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

Applied, thanks.
diff mbox

Patch

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;
 };