Skip to content

Commit 72c7c78

Browse files
ArvindYadavCslinusw
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 9e238e3 commit 72c7c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-pl061.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static const struct dev_pm_ops pl061_dev_pm_ops = {
405405
};
406406
#endif
407407

408-
static struct amba_id pl061_ids[] = {
408+
static const struct amba_id pl061_ids[] = {
409409
{
410410
.id = 0x00041061,
411411
.mask = 0x000fffff,

0 commit comments

Comments
 (0)