From patchwork Wed Aug 23 17:25:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9917973 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7BDE602CB for ; Wed, 23 Aug 2017 17:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CC90289B2 for ; Wed, 23 Aug 2017 17:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 819ED289B8; Wed, 23 Aug 2017 17:25:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29552289B2 for ; Wed, 23 Aug 2017 17:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932296AbdHWRZi (ORCPT ); Wed, 23 Aug 2017 13:25:38 -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 Received: by mail-pf0-f193.google.com with SMTP id m89so102003pfk.5; Wed, 23 Aug 2017 10:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lNc49rESiIjg+Ujd8xXC/lJiuy2KlYy8XBsVpvm9yv8=; b=PAHvMPerrxLZD5F8Pk0PengUvhXqGwgVCFadH4Z6JbFvFVTEfQA6jUaltBNQOBE+E+ gJSwJOLXdD2rxy6fW6zdDe80f3KRMu9K60JwcrLYjSJK0+BbT/M8Aip5nVBhcWWDLJWU 0RUGfQxj0ZpAc6gC3uFaU30eeinekIcQwchvGs0WDjiGByFogCn2PumR8XMh6ZvH2pWV RHMk+6d32hYW2fceqg5N1zTjIuhplC8RAFI4Z/542DIZMxs6DVyBXRdKVeJ8BzuAcfoa zOb/MfqanL0wQY4VsS2SktIVcrAX4btCg43RYLPdDlu1WKUXAikIBMhVA6UttqgxPyap w5dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lNc49rESiIjg+Ujd8xXC/lJiuy2KlYy8XBsVpvm9yv8=; b=issKnJOcy0SPBXMN8E6Nacpt4pHAnym6w8GIyiy4J6EyIC6VLDj5COBRjSc6d5lm+g bsGAQf/GXylSOr2EuODo7S71URvpHDg6tPIEYeQ8igoRqd+3XS/FduH3IuZkeI4l07Iv 4ur9u7OE1KlIyDhy33SxJY1r6llAIwu2g/vnGnpwOfL03tflFI4ZgOWrHt10Y7EXcEXS h5qUp7YRxwWNwFxFqM9Ic+qnQL0LEYMuuVfW9Q4t7MOq0pFDOky9fYa9tKdMWot+sQWJ OsHsCuUmG0BP0uVJaIicsdDc73p3wwbcrIPcH5Y6hJIxcpdNgbn4DvCnBsNk/GMv7TU5 UDUw== X-Gm-Message-State: AHYfb5j3Kk61d5B7fOhqWSTcOYq/bwMRoY/F7cnMvC3g6syj+vN3VD8u 9ptO6qIlnEPxVQ== X-Received: by 10.99.95.214 with SMTP id t205mr3377388pgb.141.1503509136919; Wed, 23 Aug 2017 10:25:36 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.93]) by smtp.gmail.com with ESMTPSA id t18sm4166024pfj.9.2017.08.23.10.25.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 10:25:36 -0700 (PDT) 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,