2014-07-24 12:02:15

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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 3ba4c0f..4b2ae61 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -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-25 16:41:38

by Mark Brown

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

On Thu, Jul 24, 2014 at 05:28:36PM +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

2014-07-25 17:21:55

by Mark Brown

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

On Thu, Jul 24, 2014 at 05:28:36PM +0530, Kiran Padwal wrote:
> Make of_device_id array const, because all OF functions handle it as const

...and reverted because it fails to build.


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

2014-07-26 07:53:37

by Kiran Padwal

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

On Fri, Jul 25, 2014 at 10:51 PM, Mark Brown <[email protected]> wrote:
> On Thu, Jul 24, 2014 at 05:28:36PM +0530, Kiran Padwal wrote:
>> 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.