2014-07-28 06:14:52

by Kiran Padwal

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
sound/soc/codecs/ak4642.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 3ba4c0f..0417125 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -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},
--
1.7.9.5


2014-07-28 21:30:25

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] ASoC: ak4642: Make of_device_id array const

On Mon, Jul 28, 2014 at 11:41:04AM +0530, Kiran Padwal wrote:
> Make of_device_id array const, because all OF functions handle it as const

Applied, thanks.


Attachments:
(No filename) (157.00 B)
signature.asc (819.00 B)
Digital signature
Download all attachments