Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932518AbdHWRZj (ORCPT ); Wed, 23 Aug 2017 13:25:39 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38704 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932216AbdHWRZh (ORCPT ); Wed, 23 Aug 2017 13:25:37 -0400 From: Arvind Yadav To: linux@armlinux.org.uk, b.zolnierkie@samsung.com Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCH] video: ARM CLCD: constify amba_id Date: Wed, 23 Aug 2017 22:55:26 +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: 737 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/video/fbdev/amba-clcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index ffc2c33c..36d2519 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -1035,7 +1035,7 @@ static struct clcd_vendor_data vendor_nomadik = { .init_panel = nomadik_clcd_init_panel, }; -static struct amba_id clcdfb_id_table[] = { +static const struct amba_id clcdfb_id_table[] = { { .id = 0x00041110, .mask = 0x000ffffe, -- 2.7.4