Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Linus Walleij
72c7c78e 9e238e38

+1 -1
+1 -1
drivers/gpio/gpio-pl061.c
··· 405 405 }; 406 406 #endif 407 407 408 - static struct amba_id pl061_ids[] = { 408 + static const struct amba_id pl061_ids[] = { 409 409 { 410 410 .id = 0x00041061, 411 411 .mask = 0x000fffff,