From patchwork Fri Jul 14 09:14:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9840237 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 EEBD360381 for ; Fri, 14 Jul 2017 09:14:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEBA32875A for ; Fri, 14 Jul 2017 09:14:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0C7528780; Fri, 14 Jul 2017 09:14:24 +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 BEE542875A for ; Fri, 14 Jul 2017 09:14:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751340AbdGNJOW (ORCPT ); Fri, 14 Jul 2017 05:14:22 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36755 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbdGNJOV (ORCPT ); Fri, 14 Jul 2017 05:14:21 -0400 Received: by mail-pf0-f194.google.com with SMTP id z6so10341770pfk.3; Fri, 14 Jul 2017 02:14:21 -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=+bvC7pF+wDZPwlmjc4SaOg4hhQIm04+jDW8JBEWZj1w=; b=nbf8AhPExQAOwwGpCDW0LLLPtuiTNb/8N5Or38ueQOQNtJs90dr71y04bdyigSp2RB fdRiFBgq7l+5PZIjByiytdlTB6rbVKz/Ho0dwzoTbXV3OVinuUImpuMCA/wfEBCg9RIu FEvLfXdTJDwgJWMe+60EwkTKb06y9f/ZqI5isCMdG9KV8dBEUeZ0GyPKgAyK6DLaqFp/ L5jHqtrpRkYgmrPkimNlP2lSSGG9BjtrzSLmq9ytQQo00Kis8QVGxk8BiKqjXh6w1pHo 2GbSrhSeay6MSstyfwsfpurSI8MPsJavn0z8gSJDn+rbRywcE3yZBb0boAvX0hANKmwA LBzg== 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=+bvC7pF+wDZPwlmjc4SaOg4hhQIm04+jDW8JBEWZj1w=; b=ac0zKkjUm6OfjpJKmgqDwROqEAE84f0dTL8FSCANm0vZYrUKMW2XIS/Gi+VtKch0qc rq6sTlPZ31dK9RGyvlFRxmpnVTyYqhloCG+224ef4itynqAzeWZEG7LDShKj4tY5X11K 4xeijXUXyZJZtM9+/xvQfth6IC40WPht8niBenbRrmUIebPDapWZzO/eNbEyVGY4d7xQ h5OsuluCxcIARLcSAp6G5E5oqmhQK5NngnVCr6xL7kb5bBTn4n2kbWSHUW7HofCQSXkW XN4mVDsjQgj+eXZmGo1BPXS1FwWeIjD771ssDfioolkHuPDNFGmkEITvMPqHnyc8jR4O HQ1w== X-Gm-Message-State: AIVw112PAGw86LymAzkGYJE4aeW4wehQA0OCZsMgwNuFZw0/1b6Fpk2B SBRdidlHKaX/yQ== X-Received: by 10.98.18.69 with SMTP id a66mr4142597pfj.33.1500023660793; Fri, 14 Jul 2017 02:14:20 -0700 (PDT) Received: from gmail.com ([117.196.121.97]) by smtp.gmail.com with ESMTPSA id q29sm21846375pfg.11.2017.07.14.02.14.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Jul 2017 02:14:20 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 14 Jul 2017 14:44:13 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, tomi.valkeinen@ti.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure Date: Fri, 14 Jul 2017 14:44:06 +0530 Message-Id: <1500023646-8846-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 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 Make lcd_panel structure const as it is only copied to some object. As the only usage of this structure is a copy operation, so it can be made const. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/omap/lcd_mipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c index df9e6eb..e3a8543 100644 --- a/drivers/video/fbdev/omap/lcd_mipid.c +++ b/drivers/video/fbdev/omap/lcd_mipid.c @@ -496,7 +496,7 @@ static void mipid_cleanup(struct lcd_panel *panel) mipid_esd_stop_check(md); } -static struct lcd_panel mipid_panel = { +static const struct lcd_panel mipid_panel = { .config = OMAP_LCDC_PANEL_TFT, .bpp = 16,