瀏覽代碼

ALSA: aoa: constify of_device_id array

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Fabian Frederick 10 年之前
父節點
當前提交
b24062bda7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/aoa/soundbus/i2sbus/core.c

+ 1 - 1
sound/aoa/soundbus/i2sbus/core.c

@@ -31,7 +31,7 @@ module_param(force, int, 0444);
 MODULE_PARM_DESC(force, "Force loading i2sbus even when"
 			" no layout-id property is present");
 
-static struct of_device_id i2sbus_match[] = {
+static const struct of_device_id i2sbus_match[] = {
 	{ .name = "i2s" },
 	{ }
 };