From patchwork Mon Jun 12 08:24:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9780581 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 D71DC60212 for ; Mon, 12 Jun 2017 08:25:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6DE326E4F for ; Mon, 12 Jun 2017 08:25:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB71F285A5; Mon, 12 Jun 2017 08:25:30 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 66EF326E4F for ; Mon, 12 Jun 2017 08:25:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752094AbdFLIZS (ORCPT ); Mon, 12 Jun 2017 04:25:18 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33191 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751931AbdFLIZP (ORCPT ); Mon, 12 Jun 2017 04:25:15 -0400 Received: by mail-pf0-f195.google.com with SMTP id w12so5740095pfk.0; Mon, 12 Jun 2017 01:25:15 -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=emLXzWl0bkZH1bwjbMpM+Mqa6sUAxBj/NoZ/6TE9plM=; b=B7LjHvg5jbiXgqyMeYM/GP5DwCTlZ1ld/2/VEhscUQVhn9xx+MDJ28TyCgamFlU5tN 3Nb7FgkJGgAaLE37AALiCghcPVoyk88ZSX0SUBKeFZJGvxJEXF5v+ZN+4Grq13KYTW5U bCH26QJd8i49yh8OoeyjEBXshqAo3opC2VhGIUCAf+75WigUIJ1uCB9ZRpEfDcMgHXQq 04YVmDYtlTItXm0LnpSu3oTlk9gT9n8HqGJQ1U3rOs0ooKYF0VKKtSAs+LyknjoOiYy6 BKHX9v/UoxigTr4P5krNlT7ypPxYfWbAWYBsC7sMnKHm4ZO1z8FJjgXCg7EmMfZIdmLL 9eRA== 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=emLXzWl0bkZH1bwjbMpM+Mqa6sUAxBj/NoZ/6TE9plM=; b=EYcrWIAL7OZ9AtfF26/xHlszbA9g2IhkVssIKyLEhcmEL8xEW4ErKTgUlRYK2FwD2U A4vgQ+tiIuo5fTBry7BMYD4WXK49UkGgVSsQ8BYQ28S2xpSgw5we8lijpjSkmn2Pvt2u QB3SWxzl7+Qi6UVNqmBi80XrqY/8JmHzOBe9lqJgeJ6F7vI0cxAVLzwngXtC06C3sG8d I/3uXea3l3Jjze4zl4WZtOWqGCe/bZEfnQC4P9pMqrUb2vuoM3ZXmhez/mcq5KQV4hNw EDY5Ti9fqlHgw9de88Au2xNUvvpp8udZuJNGOcVBjFcnpbbveuW7I9IUSjyO4+c9RDuA AHYA== X-Gm-Message-State: AODbwcCfb7tp5+SI4zF7uVxg0sYgH2x/7BeMTUMaYuduKZkxeXH25l4j st6qpt/3DWNrOg== X-Received: by 10.84.231.130 with SMTP id g2mr56185743plk.2.1497255914613; Mon, 12 Jun 2017 01:25:14 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id 69sm17334953pfy.119.2017.06.12.01.25.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 01:25:14 -0700 (PDT) From: Arvind Yadav To: b.zolnierkie@samsung.com Cc: geert+renesas@glider.be, keescook@chromium.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: sh_mobile_lcdcfb: constify sh_mobile_lcdc_bl_ops. Date: Mon, 12 Jun 2017 13:54:47 +0530 Message-Id: <0628fdebc036ff76a6ff343aa0422498e6a0236f.1497255675.git.arvind.yadav.cs@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 File size before: text data bss dec hex filename 17525 952 0 18477 482d drivers/video/fbdev/sh_mobile_lcdcfb.o File size After adding 'const': text data bss dec hex filename 17557 920 0 18477 482d drivers/video/fbdev/sh_mobile_lcdcfb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c index 885ee3a..c3a4650 100644 --- a/drivers/video/fbdev/sh_mobile_lcdcfb.c +++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c @@ -2301,7 +2301,7 @@ static int sh_mobile_lcdc_check_fb(struct backlight_device *bdev, return (info->bl_dev == bdev); } -static struct backlight_ops sh_mobile_lcdc_bl_ops = { +static const struct backlight_ops sh_mobile_lcdc_bl_ops = { .options = BL_CORE_SUSPENDRESUME, .update_status = sh_mobile_lcdc_update_bl, .get_brightness = sh_mobile_lcdc_get_brightness,