Skip to content

Commit 7566d5b

Browse files
krzkJassi Brar
authored andcommitted
mailbox: arm_mhu_db: Constify amba_id table
'struct amba_id' table is not modified so can be changed to const for more safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent 48e7375 commit 7566d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mailbox/arm_mhu_db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
328328
return 0;
329329
}
330330

331-
static struct amba_id mhu_ids[] = {
331+
static const struct amba_id mhu_ids[] = {
332332
{
333333
.id = 0x1bb098,
334334
.mask = 0xffffff,

0 commit comments

Comments
 (0)