ASoC: ak4642: Make of_device_id array const
authorKiran Padwal <kiran.padwal21@gmail.com>
Mon, 28 Jul 2014 06:11:04 +0000 (11:41 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 28 Jul 2014 21:29:41 +0000 (22:29 +0100)
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>
sound/soc/codecs/ak4642.c

index 3ba4c0f11418a8228012f17ff6f3500739401940..041712592e29f32f2dd4838a91a72f7ba99a3cc2 100644 (file)
@@ -547,7 +547,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)
 {
@@ -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},