Skip to content

Commit

Permalink
ASoC: fsl: constify of_device_id array
Browse files Browse the repository at this point in the history
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Fabian Frederick authored and Mark Brown committed Mar 22, 2015
1 parent c517d83 commit 6ffa84d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sound/soc/fsl/mpc5200_psc_ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static int psc_ac97_of_remove(struct platform_device *op)
}

/* Match table for of_platform binding */
static struct of_device_id psc_ac97_match[] = {
static const struct of_device_id psc_ac97_match[] = {
{ .compatible = "fsl,mpc5200-psc-ac97", },
{ .compatible = "fsl,mpc5200b-psc-ac97", },
{}
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/fsl/mpc5200_psc_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int psc_i2s_of_remove(struct platform_device *op)
}

/* Match table for of_platform binding */
static struct of_device_id psc_i2s_match[] = {
static const struct of_device_id psc_i2s_match[] = {
{ .compatible = "fsl,mpc5200-psc-i2s", },
{ .compatible = "fsl,mpc5200b-psc-i2s", },
{}
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/fsl/pcm030-audio-fabric.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static int pcm030_fabric_remove(struct platform_device *op)
return ret;
}

static struct of_device_id pcm030_audio_match[] = {
static const struct of_device_id pcm030_audio_match[] = {
{ .compatible = "phytec,pcm030-audio-fabric", },
{}
};
Expand Down

0 comments on commit 6ffa84d

Please sign in to comment.