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>
Cette révision appartient à :
Takashi Iwai
2013-06-28 11:56:49 +02:00
Parent 0c055b3413
révision 975cc02a90
6 fichiers modifiés avec 15 ajouts et 13 suppressions

Voir le fichier

@@ -1278,7 +1278,7 @@ struct hpi_control {
u16 dst_node_type;
u16 dst_node_index;
u16 band;
char name[44]; /* copied to snd_ctl_elem_id.name[44]; */
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* copied to snd_ctl_elem_id.name[44]; */
};
static const char * const asihpi_tuner_band_names[] = {