]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - sound/soc/codecs/ak4642.c
ASoC: ak4642: make arrays fs_list and ps_list static const
[mirror_ubuntu-jammy-kernel.git] / sound / soc / codecs / ak4642.c
index 23ab9646c3514c1c21adbd0166e93eb4eab4b360..66de8a2013a6b1e5b2c54f9512a18e324ed3b81f 100644 (file)
@@ -433,7 +433,7 @@ static int ak4642_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 static int ak4642_set_mcko(struct snd_soc_codec *codec,
                           u32 frequency)
 {
-       u32 fs_list[] = {
+       static const u32 fs_list[] = {
                [0] = 8000,
                [1] = 12000,
                [2] = 16000,
@@ -447,7 +447,7 @@ static int ak4642_set_mcko(struct snd_soc_codec *codec,
                [14] = 29400,
                [15] = 44100,
        };
-       u32 ps_list[] = {
+       static const u32 ps_list[] = {
                [0] = 256,
                [1] = 128,
                [2] = 64,