diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-05 15:47:55 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-05 16:14:58 +0100 |
commit | b40fe4bbc76bf6be655f9ba975dc91c6a72fe79e (patch) | |
tree | 9f7cc248486b3a9c649bd8f71c7ed263594ce448 /sound/core/oss/mixer_oss.c | |
parent | f98903fce976f261b5cfc28a1c86163a7c5b01b9 (diff) | |
download | linux-b40fe4bbc76bf6be655f9ba975dc91c6a72fe79e.tar.gz linux-b40fe4bbc76bf6be655f9ba975dc91c6a72fe79e.tar.bz2 linux-b40fe4bbc76bf6be655f9ba975dc91c6a72fe79e.zip |
ALSA: oss: More constifications
Apply const prefix to the static tables for strings and formats.
Just for minor optimization and no functional changes.
Link: https://lore.kernel.org/r/20200105144823.29547-41-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/oss/mixer_oss.c')
-rw-r--r-- | sound/core/oss/mixer_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c index 26502294f7d8..f702c96a7478 100644 --- a/sound/core/oss/mixer_oss.c +++ b/sound/core/oss/mixer_oss.c @@ -1109,7 +1109,7 @@ static int snd_mixer_oss_build_input(struct snd_mixer_oss *mixer, /* */ #define MIXER_VOL(name) [SOUND_MIXER_##name] = #name -static char *oss_mixer_names[SNDRV_OSS_MAX_MIXERS] = { +static const char * const oss_mixer_names[SNDRV_OSS_MAX_MIXERS] = { MIXER_VOL(VOLUME), MIXER_VOL(BASS), MIXER_VOL(TREBLE), |