Skip to content

Commit

Permalink
gpio: pl061: constify amba_id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arvind Yadav authored and Linus Walleij committed Aug 31, 2017
1 parent 9e238e3 commit 72c7c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-pl061.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 72c7c78

Please sign in to comment.