Skip to content

Commit 88411de

Browse files
ArvindYadavCsstorulf
authored andcommitted
mmc: mmci: 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: Ulf Hansson <[email protected]>
1 parent e7b4276 commit 88411de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/mmci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ static const struct dev_pm_ops mmci_dev_pm_ops = {
19041904
SET_RUNTIME_PM_OPS(mmci_runtime_suspend, mmci_runtime_resume, NULL)
19051905
};
19061906

1907-
static struct amba_id mmci_ids[] = {
1907+
static const struct amba_id mmci_ids[] = {
19081908
{
19091909
.id = 0x00041180,
19101910
.mask = 0xff0fffff,

0 commit comments

Comments
 (0)