diff options
author | Kiran Padwal <kiran.padwal21@gmail.com> | 2014-07-28 02:11:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-28 17:29:41 -0400 |
commit | 27204ca8b981160c3b65cdc226c9070f76cbbd36 (patch) | |
tree | 66a7849b71fe213c5c014800464567f4721783cf /sound/soc/codecs/ak4642.c | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
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>
Diffstat (limited to 'sound/soc/codecs/ak4642.c')
-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 3ba4c0f11418..041712592e29 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c | |||
@@ -547,7 +547,7 @@ static const struct ak4642_drvdata ak4648_drvdata = { | |||
547 | .extended_frequencies = 1, | 547 | .extended_frequencies = 1, |
548 | }; | 548 | }; |
549 | 549 | ||
550 | static struct of_device_id ak4642_of_match[]; | 550 | static const struct of_device_id ak4642_of_match[]; |
551 | static int ak4642_i2c_probe(struct i2c_client *i2c, | 551 | static int ak4642_i2c_probe(struct i2c_client *i2c, |
552 | const struct i2c_device_id *id) | 552 | const struct i2c_device_id *id) |
553 | { | 553 | { |
@@ -593,7 +593,7 @@ static int ak4642_i2c_remove(struct i2c_client *client) | |||
593 | return 0; | 593 | return 0; |
594 | } | 594 | } |
595 | 595 | ||
596 | static struct of_device_id ak4642_of_match[] = { | 596 | static const struct of_device_id ak4642_of_match[] = { |
597 | { .compatible = "asahi-kasei,ak4642", .data = &ak4642_drvdata}, | 597 | { .compatible = "asahi-kasei,ak4642", .data = &ak4642_drvdata}, |
598 | { .compatible = "asahi-kasei,ak4643", .data = &ak4643_drvdata}, | 598 | { .compatible = "asahi-kasei,ak4643", .data = &ak4643_drvdata}, |
599 | { .compatible = "asahi-kasei,ak4648", .data = &ak4648_drvdata}, | 599 | { .compatible = "asahi-kasei,ak4648", .data = &ak4648_drvdata}, |