Skip to contentSkip to conversation

ASoC: ak4642: Make of_device_id array const

PATCH Applied Kiran Padwal 2 participants 4 messages Jul 24, 2014 – Jul 26, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: ak4642: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as const

---
 sound/soc/codecs/ak4642.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/ak4642.c +1 -1
index 3ba4c0f..4b2ae61 100644
@@ -593,7 +593,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},
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 1 line · Kiran Padwal

Make of_device_id array const, because all OF functions handle it as const

Applied, thanks.

maintainer
#2 lore raw
In reply to Kiran Padwal
Quoted 1 line · Kiran Padwal

Make of_device_id array const, because all OF functions handle it as const

...and reverted because it fails to build.

#3 lore raw
Quoted 4 lines · Mark Brown
Quoted 1 line · Kiran Padwal

Make of_device_id array const, because all OF functions handle it as const

...and reverted because it fails to build.

sorry for that...I miss one thing...I will resubmit the patch. Thanks.