From patchwork Thu Aug 10 09:16:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9893091 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 6C25C603F2 for ; Thu, 10 Aug 2017 09:17:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6158528ADA for ; Thu, 10 Aug 2017 09:17:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5666328AE4; Thu, 10 Aug 2017 09:17:46 +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=-4.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,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 0665E28ADE for ; Thu, 10 Aug 2017 09:17:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752228AbdHJJRJ (ORCPT ); Thu, 10 Aug 2017 05:17:09 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37652 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbdHJJRG (ORCPT ); Thu, 10 Aug 2017 05:17:06 -0400 Received: by mail-pg0-f68.google.com with SMTP id 83so139578pgb.4; Thu, 10 Aug 2017 02:17:06 -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:in-reply-to:references; bh=JL/TCI20lRWfvg0FCZuUKIwD4N+yK/0cgRNqsi1o8jk=; b=hPKPFTCtLbsY0bNK7Ugr+MdgTIUG34xRFpF/+GxTYqfxcT+gau+fUC9qhcWC4PYpxl PiQnSzLpsJVvKDo9HPyp3iyr8phPDzqxTIwEuEeycK7FwbQ3+rZDfW3pXuLGsICpvcRk 3oT2B9+7/yI4zCrD1pvA4xm/+w6RRENu78+9DFjKg8b4Cyyy1ODWxWdAPz7bjSb1OaGO cKgjM8iw69uXjm1lKDA0oUt/g6nv+881osF31ya4Tc60fXNyGikcGiwI9fJAwqKPZh3D imK/vMIUbvrgU/43Iw6rd7+Tb8SqpFpPhAL3bOpsV/LgCGeT3QEOjEiSkAqyq953+jJg ngbQ== 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:in-reply-to :references; bh=JL/TCI20lRWfvg0FCZuUKIwD4N+yK/0cgRNqsi1o8jk=; b=f5dn/rpK1bMBHioHHW196TeAELKUbWc8MJqhbHbPnOJ/6ZIA2O9zx2vLLN21xoS0V8 r89atiiwMbG1IgXAYeC0NB+mx83m1ZdQ6FOuJCXaRgPJt5h5bHGSRBKZ/cpD08epmHEJ VHTBu3nPJVVzVCDPgXpITxFYOBrDbBqVM2kCGxfDYXm5SpdR2R2+x1hCXH+I3jkwUJOt VXlwyf8Fw5SU2OwGuZz/VZjz9BFNx7yKLy1uVdyYxNUYeQgF54MhWXcpO8yZItWVusrA gVeVQ9QWYO0wHxj6D4u9eD/Cr4SAMfl0bdF6RADSa2VcAWWRHeiZgbYUsiOptXVjzWlD 7nSg== X-Gm-Message-State: AHYfb5jpwg2EJSn41mD8nxkIBweteWR4XHdMkdZftkQYtFviDG0PP2bs dWiF/jPPTOC4QQ== X-Received: by 10.99.98.5 with SMTP id w5mr10865461pgb.354.1502356626033; Thu, 10 Aug 2017 02:17:06 -0700 (PDT) Received: from gmail.com ([117.196.100.97]) by smtp.gmail.com with ESMTPSA id f15sm10726491pga.5.2017.08.10.02.17.02 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 Aug 2017 02:17:05 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 10 Aug 2017 14:46:59 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, adaplas@gmail.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 1/2] fbdev: matrox: make fb_ops const Date: Thu, 10 Aug 2017 14:46:44 +0530 Message-Id: <1502356605-20801-2-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502356605-20801-1-git-send-email-bhumirks@gmail.com> References: <1502356605-20801-1-git-send-email-bhumirks@gmail.com> 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 fb_ops const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index 00ea4e4..49ef48d 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -1198,7 +1198,7 @@ static int matroxfb_blank(int blank, struct fb_info *info) return 0; } -static struct fb_ops matroxfb_ops = { +static const struct fb_ops matroxfb_ops = { .owner = THIS_MODULE, .fb_open = matroxfb_open, .fb_release = matroxfb_release,