From patchwork Thu Aug 10 09:16:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9893089 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 5B47A603B4 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 5154128ADA for ; Thu, 10 Aug 2017 09:17:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45C0928AE3; 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 D89EB28ADA for ; Thu, 10 Aug 2017 09:17:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbdHJJRQ (ORCPT ); Thu, 10 Aug 2017 05:17:16 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33239 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbdHJJRN (ORCPT ); Thu, 10 Aug 2017 05:17:13 -0400 Received: by mail-pf0-f193.google.com with SMTP id c65so180123pfl.0; Thu, 10 Aug 2017 02:17:13 -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=iDfOeI5sjJTWzdbGrg6Cp8SkgwtxtHiODVxKW6VyfNc=; b=OtQkW4Gsl1Is6vGgcOxaXZ0iZf/m2qswqzMvS/giEVuAL6w6zenQnGsgf3Mj9mL77S 4J6uXx9QCpnxpdTsjz8m5SeglINeJnsJ2uKhcSXXQAkSjgkA9DQfKtJH2zCfs/v2Oyde WbkK/ob2bKxCt7OjAA+HiNq7NAzw/lkXU/dcOrldDCbJXQBgpMKrtLrZTOzFuZ7C7RDa zq9tVw73w/PvipcIAKDYD1Wgp8LY6CR16v7drxwUGe0p7uv4sTjuOfg13qCa4H55gtlI TtsXyxCw6QyXmWpiz8w/9++h0+DXC6d9X81wjS1u97mLYJIroZEguhhQhDIFA2F5k5+3 EyiQ== 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=iDfOeI5sjJTWzdbGrg6Cp8SkgwtxtHiODVxKW6VyfNc=; b=DZ0Foplp/YZsjblbQvfcHDQ+/z9hoGLl5dR2MSG46i/CjeTBpJhfvnsmugGp2ajtre vBF8sAIG9vNn6GeeUxMlFyd23+dyeNG9rkEfBxDPc55VbdK5wwu6oWmIgbQugXfkPVMR nEeXk9760/E6nfY1pYhGvCppcj7FhW89Fal0XLtubKP+05PeP6/ZpOpWb07EM1V0tPPi hPmibuKt/icvP/peM6F3+mrOh0if7vyWS8ZMx9JfxZ8EhDS2mNP/a9nVe0FnPeTnwmo/ WmPzF5f1KyEXngfWfucOrxtYlA7aRYg68EVvT4E4iWbynRZKHBaVLfjsiH5pUU6vdU8w Ul/Q== X-Gm-Message-State: AHYfb5isjYZ/k3c5+n1sgXJffM7qtIXgS2Jx8Bj7FoRI37138nqoccdw twGSRekG1XHcCA== X-Received: by 10.84.232.205 with SMTP id x13mr12572963plm.432.1502356633226; Thu, 10 Aug 2017 02:17:13 -0700 (PDT) Received: from gmail.com ([117.196.100.97]) by smtp.gmail.com with ESMTPSA id v9sm12493433pgo.39.2017.08.10.02.17.09 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 Aug 2017 02:17:12 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 10 Aug 2017 14:47:06 +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 2/2] fbdev: i810: make fb_ops const Date: Thu, 10 Aug 2017 14:46:45 +0530 Message-Id: <1502356605-20801-3-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 the structure const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/i810/i810_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index f0a758a..d18f7b3 100644 --- a/drivers/video/fbdev/i810/i810_main.c +++ b/drivers/video/fbdev/i810/i810_main.c @@ -1542,7 +1542,7 @@ static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor) return 0; } -static struct fb_ops i810fb_ops = { +static const struct fb_ops i810fb_ops = { .owner = THIS_MODULE, .fb_open = i810fb_open, .fb_release = i810fb_release,