Skip to content

Commit

Permalink
serial: pl010: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Arvind Yadav authored and Greg Kroah-Hartman committed Aug 28, 2017
1 parent d054b3a commit 5337e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/amba-pl010.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static int pl010_resume(struct device *dev)

static SIMPLE_DEV_PM_OPS(pl010_dev_pm_ops, pl010_suspend, pl010_resume);

static struct amba_id pl010_ids[] = {
static const struct amba_id pl010_ids[] = {
{
.id = 0x00041010,
.mask = 0x000fffff,
Expand Down

0 comments on commit 5337e54

Please sign in to comment.