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/pcm_plugin.c | |
parent | ALSA: jack: More constification (diff) | |
download | linux-dev-b40fe4bbc76bf6be655f9ba975dc91c6a72fe79e.tar.xz linux-dev-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/pcm_plugin.c')
-rw-r--r-- | sound/core/oss/pcm_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/oss/pcm_plugin.c b/sound/core/oss/pcm_plugin.c index 31cb2acf8afc..240e4702c098 100644 --- a/sound/core/oss/pcm_plugin.c +++ b/sound/core/oss/pcm_plugin.c @@ -288,7 +288,7 @@ static int snd_pcm_plug_formats(const struct snd_mask *mask, return snd_mask_test(&formats, (__force int)format); } -static snd_pcm_format_t preferred_formats[] = { +static const snd_pcm_format_t preferred_formats[] = { SNDRV_PCM_FORMAT_S16_LE, SNDRV_PCM_FORMAT_S16_BE, SNDRV_PCM_FORMAT_U16_LE, |