Skip to content

Commit 5b8d5ad

Browse files
ArvindYadavCsbroonie
authored andcommitted
spi: pl022: 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: Mark Brown <[email protected]>
1 parent 5771a8c commit 5b8d5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-pl022.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ static struct vendor_data vendor_lsi = {
24292429
.internal_cs_ctrl = true,
24302430
};
24312431

2432-
static struct amba_id pl022_ids[] = {
2432+
static const struct amba_id pl022_ids[] = {
24332433
{
24342434
/*
24352435
* ARM PL022 variant, this has a 16bit wide

0 commit comments

Comments
 (0)