Skip to content

Commit

Permalink
ASoC: twl6040: Constify rate constraints
Browse files Browse the repository at this point in the history
The rate constraints in this driver are shared between all device instances. It
should not be (and is not) modified at runtime, so make them const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Feb 7, 2014
1 parent 38dbfb5 commit 0d76fc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct twl6040_data {
};

/* set of rates for each pll: low-power and high-performance */
static unsigned int lp_rates[] = {
static const unsigned int lp_rates[] = {
8000,
11250,
16000,
Expand All @@ -93,15 +93,15 @@ static unsigned int lp_rates[] = {
96000,
};

static unsigned int hp_rates[] = {
static const unsigned int hp_rates[] = {
8000,
16000,
32000,
48000,
96000,
};

static struct snd_pcm_hw_constraint_list sysclk_constraints[] = {
static const struct snd_pcm_hw_constraint_list sysclk_constraints[] = {
{ .count = ARRAY_SIZE(lp_rates), .list = lp_rates, },
{ .count = ARRAY_SIZE(hp_rates), .list = hp_rates, },
};
Expand Down

0 comments on commit 0d76fc6

Please sign in to comment.