From: Arvind Yadav Date: Wed, 23 Aug 2017 16:15:09 +0000 (+0530) Subject: gpio: pl061: constify amba_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72c7c78e68d1e509c19bade5496d9d55d81699a5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- 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,