Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932381AbdHWQ1l (ORCPT ); Wed, 23 Aug 2017 12:27:41 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33299 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932109AbdHWQ1j (ORCPT ); Wed, 23 Aug 2017 12:27:39 -0400 From: Arvind Yadav To: dan.j.williams@intel.com, vinod.koul@intel.com Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH] dmaengine: pl330: constify amba_id Date: Wed, 23 Aug 2017 21:57:31 +0530 Message-Id: <08e336cf95306169c2f1cf51175d900adf759ed9.1503505419.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 634 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/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index b19ee04..f122c2a 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3023,7 +3023,7 @@ static int pl330_remove(struct amba_device *adev) return 0; } -static struct amba_id pl330_ids[] = { +static const struct amba_id pl330_ids[] = { { .id = 0x00041330, .mask = 0x000fffff, -- 2.7.4