瀏覽代碼

watchdog: sp805: constify amba_id

amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Arvind Yadav 8 年之前
父節點
當前提交
05ce42fff3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/watchdog/sp805_wdt.c

+ 1 - 1
drivers/watchdog/sp805_wdt.c

@@ -281,7 +281,7 @@ static int __maybe_unused sp805_wdt_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(sp805_wdt_dev_pm_ops, sp805_wdt_suspend,
 static SIMPLE_DEV_PM_OPS(sp805_wdt_dev_pm_ops, sp805_wdt_suspend,
 		sp805_wdt_resume);
 		sp805_wdt_resume);
 
 
-static struct amba_id sp805_wdt_ids[] = {
+static const struct amba_id sp805_wdt_ids[] = {
 	{
 	{
 		.id	= 0x00141805,
 		.id	= 0x00141805,
 		.mask	= 0x00ffffff,
 		.mask	= 0x00ffffff,