projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e238e3
)
gpio: pl061: constify amba_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 16:15:09 +0000
(21:45 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 31 Aug 2017 11:57:57 +0000
(13:57 +0200)
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>
drivers/gpio/gpio-pl061.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-pl061.c
b/drivers/gpio/gpio-pl061.c
index 3d3d6b6645a7a5a5cf16c1d2647864939c080cb8..6aaaab79c20579a9248c6a80a65e090ff2d692c8 100644
(file)
--- 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,