Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932268AbdHWQ12 (ORCPT ); Wed, 23 Aug 2017 12:27:28 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34404 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932118AbdHWQ11 (ORCPT ); Wed, 23 Aug 2017 12:27:27 -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: pl08x: constify amba_id Date: Wed, 23 Aug 2017 21:57:12 +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: 710 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/amba-pl08x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 13cc95c..b52b0d5 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -3033,7 +3033,7 @@ static struct vendor_data vendor_ftdmac020 = { .max_transfer_size = PL080_CONTROL_TRANSFER_SIZE_MASK, }; -static struct amba_id pl08x_ids[] = { +static const struct amba_id pl08x_ids[] = { /* Samsung PL080S variant */ { .id = 0x0a141080, -- 2.7.4