diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 22:04:08 +0530 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2017-09-09 21:17:44 +0200 |
commit | 05ce42fff3afb2904647f6a88c6dc613b5a2793a (patch) | |
tree | beb78d6faf69bcf61fc393218bb3161a85349c46 /drivers/watchdog/sp805_wdt.c | |
parent | 68c82befe4023afd75006676c4bd708dbe98d668 (diff) | |
download | op-kernel-dev-05ce42fff3afb2904647f6a88c6dc613b5a2793a.zip op-kernel-dev-05ce42fff3afb2904647f6a88c6dc613b5a2793a.tar.gz |
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>
Diffstat (limited to 'drivers/watchdog/sp805_wdt.c')
-rw-r--r-- | drivers/watchdog/sp805_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index e7a715e..03805bc 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/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, sp805_wdt_resume); -static struct amba_id sp805_wdt_ids[] = { +static const struct amba_id sp805_wdt_ids[] = { { .id = 0x00141805, .mask = 0x00ffffff, |