Browse Source

gpio: pl061: 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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Arvind Yadav 8 years ago
parent
commit
72c7c78e68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpio/gpio-pl061.c

+ 1 - 1
drivers/gpio/gpio-pl061.c

@@ -405,7 +405,7 @@ static const struct dev_pm_ops pl061_dev_pm_ops = {
 };
 #endif
 
-static struct amba_id pl061_ids[] = {
+static const struct amba_id pl061_ids[] = {
 	{
 		.id	= 0x00041061,
 		.mask	= 0x000fffff,