diff mbox

[5/7,linux-next] ASoC: ak4554: constify of_device_id array

Message ID 1426697344-4884-6-git-send-email-fabf@skynet.be (mailing list archive)
State Accepted
Commit f7d4bfee667e236bc9680cfe2f17247bc007f4e3
Headers show

Commit Message

Fabian Frederick March 18, 2015, 4:49 p.m. UTC
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 sound/soc/codecs/ak4554.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown March 22, 2015, 6:05 p.m. UTC | #1
On Wed, Mar 18, 2015 at 05:49:00PM +0100, Fabian Frederick wrote:
> of_device_id is always used as const.
> (See driver.of_match_table and open firmware functions)

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/ak4554.c b/sound/soc/codecs/ak4554.c
index 16ce9f9..298dedc 100644
--- a/sound/soc/codecs/ak4554.c
+++ b/sound/soc/codecs/ak4554.c
@@ -84,7 +84,7 @@  static int ak4554_soc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct of_device_id ak4554_of_match[] = {
+static const struct of_device_id ak4554_of_match[] = {
 	{ .compatible = "asahi-kasei,ak4554" },
 	{},
 };