diff options
author | Kiran Padwal <kiran.padwal21@gmail.com> | 2014-07-28 11:41:04 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-12-05 09:25:20 +0900 |
commit | d48d837e320b2956b82398d8d54eecaaa5f1b41c (patch) | |
tree | f2090f60d8ed534e8ce02332411f0bd3238fbed3 /sound | |
parent | 906a652c378d865e89d8b689dc900b5ed5c9738a (diff) | |
download | renesas_kernel-d48d837e320b2956b82398d8d54eecaaa5f1b41c.tar.gz renesas_kernel-d48d837e320b2956b82398d8d54eecaaa5f1b41c.tar.bz2 renesas_kernel-d48d837e320b2956b82398d8d54eecaaa5f1b41c.zip |
ASoC: ak4642: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const
Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 27204ca8b981160c3b65cdc226c9070f76cbbd36)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/ak4642.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 647be66078e..7d862597bac 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c @@ -555,7 +555,7 @@ static const struct ak4642_drvdata ak4648_drvdata = { .extended_frequencies = 1, }; -static struct of_device_id ak4642_of_match[]; +static const struct of_device_id ak4642_of_match[]; static int ak4642_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { @@ -601,7 +601,7 @@ static int ak4642_i2c_remove(struct i2c_client *client) return 0; } -static struct of_device_id ak4642_of_match[] = { +static const struct of_device_id ak4642_of_match[] = { { .compatible = "asahi-kasei,ak4642", .data = &ak4642_drvdata}, { .compatible = "asahi-kasei,ak4643", .data = &ak4643_drvdata}, { .compatible = "asahi-kasei,ak4648", .data = &ak4648_drvdata}, |