aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_jack.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-06-28 05:56:49 -0400
committerTakashi Iwai <tiwai@suse.de>2013-06-28 06:14:44 -0400
commit975cc02a904ae385721f1bdb65eb1bcf707dfaf1 (patch)
tree9ca3c2937ff979fe3f7266f9c1902a60011a61f0 /sound/pci/hda/hda_jack.c
parent0c055b3413868227f2e85701c4e6938c9581f0e2 (diff)
ALSA: Replace the magic number 44 with const
The char arrays with size 44 are for the name string of snd_ctl_elem_id. Define the constant and replace the raw numbers with it for clarifying better. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_jack.c')
-rw-r--r--sound/pci/hda/hda_jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c
index 9e0a95288f46..3fd2973183e2 100644
--- a/sound/pci/hda/hda_jack.c
+++ b/sound/pci/hda/hda_jack.c
@@ -398,7 +398,7 @@ static int add_jack_kctl(struct hda_codec *codec, hda_nid_t nid,
398 const char *base_name) 398 const char *base_name)
399{ 399{
400 unsigned int def_conf, conn; 400 unsigned int def_conf, conn;
401 char name[44]; 401 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
402 int idx, err; 402 int idx, err;
403 bool phantom_jack; 403 bool phantom_jack;
404 404