Message ID | 20190907074156.21907-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b61b1e35ed06db180968cb5ca0fbf8b8887ccb93 |
Headers | show |
Series | ASoC: rt1305: make array pd static const, makes object smaller | expand |
diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c index 9909369483f0..e27742abfa76 100644 --- a/sound/soc/codecs/rt1305.c +++ b/sound/soc/codecs/rt1305.c @@ -608,7 +608,8 @@ static const struct snd_soc_dapm_route rt1305_dapm_routes[] = { static int rt1305_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;