Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932526AbdHWQi6 (ORCPT ); Wed, 23 Aug 2017 12:38:58 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35853 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932243AbdHWQiz (ORCPT ); Wed, 23 Aug 2017 12:38:55 -0400 From: Arvind Yadav To: jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] mailbox: arm_mhu: constify amba_id Date: Wed, 23 Aug 2017 22:08:43 +0530 Message-Id: <25c6e5921cae5bbafb1d16bb5d820856df4541a2.1503506225.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 652 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/arm_mhu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/arm_mhu.c b/drivers/mailbox/arm_mhu.c index 99befa7..793678c 100644 --- a/drivers/mailbox/arm_mhu.c +++ b/drivers/mailbox/arm_mhu.c @@ -171,7 +171,7 @@ static int mhu_remove(struct amba_device *adev) return 0; } -static struct amba_id mhu_ids[] = { +static const struct amba_id mhu_ids[] = { { .id = 0x1bb098, .mask = 0xffffff, -- 2.7.4