Message ID | 20190907074634.22144-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 13ab0d1ab8ae4d1b3b247fd5caec2c10e35c7269 |
Headers | show |
Series | ASoC: rt1308: make array pd static const, makes object smaller | expand |
diff --git a/sound/soc/codecs/rt1308.c b/sound/soc/codecs/rt1308.c index 6f2ee6809dbb..b75931a69a1c 100644 --- a/sound/soc/codecs/rt1308.c +++ b/sound/soc/codecs/rt1308.c @@ -436,7 +436,8 @@ static const struct snd_soc_dapm_route rt1308_dapm_routes[] = { static int rt1308_get_clk_info(int sclk, int rate) { - int i, pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; + int i; + static const int pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; if (sclk <= 0 || rate <= 0) return -EINVAL;