summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pl061.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 21:45:09 +0530
committerLinus Walleij <linus.walleij@linaro.org>2017-08-31 13:57:57 +0200
commit72c7c78e68d1e509c19bade5496d9d55d81699a5 (patch)
tree6c856155a84e93fea6fc87a3e93e937b4db55945 /drivers/gpio/gpio-pl061.c
parent9e238e380c2a8aff21d37f713b5c24b079a726a5 (diff)
downloadlinux-stable-72c7c78e68d1e509c19bade5496d9d55d81699a5.tar.gz
linux-stable-72c7c78e68d1e509c19bade5496d9d55d81699a5.tar.bz2
linux-stable-72c7c78e68d1e509c19bade5496d9d55d81699a5.zip
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>
Diffstat (limited to 'drivers/gpio/gpio-pl061.c')
-rw-r--r--drivers/gpio/gpio-pl061.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index 3d3d6b6645a7..6aaaab79c205 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/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,