Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932482AbdHWQiy (ORCPT ); Wed, 23 Aug 2017 12:38:54 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35857 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932243AbdHWQix (ORCPT ); Wed, 23 Aug 2017 12:38:53 -0400 From: Arvind Yadav To: jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] mailbox: pl320: constify amba_id Date: Wed, 23 Aug 2017 22:08:42 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 699 Lines: 23 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 --- drivers/mailbox/pl320-ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/pl320-ipc.c b/drivers/mailbox/pl320-ipc.c index 2dbed87..a80927a 100644 --- a/drivers/mailbox/pl320-ipc.c +++ b/drivers/mailbox/pl320-ipc.c @@ -175,7 +175,7 @@ static int pl320_probe(struct amba_device *adev, const struct amba_id *id) return ret; } -static struct amba_id pl320_ids[] = { +static const struct amba_id pl320_ids[] = { { .id = 0x00041320, .mask = 0x000fffff, -- 2.7.4