From patchwork Thu Jun 29 08:21:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9816239 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 3C841603D7 for ; Thu, 29 Jun 2017 08:22:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 336A82865A for ; Thu, 29 Jun 2017 08:22:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 276182867D; Thu, 29 Jun 2017 08:22:49 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1B6E2865A for ; Thu, 29 Jun 2017 08:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=IqiKR1r22Xt8FRIW0UZaZUlDYHz5ROAkF2AJ90LZHMQ=; b=cf4 pz7qwhLBrlFYEDzvvrYacxl8er2SGIlKyPPldBn48LSJ1i8/IEqAw1imy+lC0mje9GkaNq1cffAs/ I9UfZbMKDT9eXAlIOcYrz5+fWvLkwKggESSJq5VZMiMxot3ue+UuQ9UxKH64oxcU79+w1VE0XpCuH jSPi9804u4exl+nQVuoa7WT/o6eISzrw6EzjzLNFMSbFc9aP4/G5k/GvaBwd4XyfPz8+dIuCoO7R/ zpcR1WRUfofMAE3NRzxudPL9NXOkQ555BaYEwygjVs6UiZ0/UnccTpNIB+EXueTNZRsUCDwTVAobB HmWSAEjrJxrvDufj4LuP8c2DEYwIjjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQUis-00082f-Lv; Thu, 29 Jun 2017 08:22:46 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQUip-0007vT-JK for linux-arm-kernel@lists.infradead.org; Thu, 29 Jun 2017 08:22:45 +0000 Received: by mail-pg0-x242.google.com with SMTP id u62so11081205pgb.0 for ; Thu, 29 Jun 2017 01:22:27 -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=uE3BAtYz9ltu6LyhwAoz8H0RQaDWLv4sWn8B1Nzu95w=; b=cKciNqvvU5ocZxUIBdlGupDJk9QdTcmcafeogvSwpDBPx5G1kDvrGktc2NaL3CYiqF iygcE8g32JtvqZLYlMks0YtLg4RUUONA2ITG/kvkeMMhUE01bDDiSquKPlFWmry5H8sT OgTwR432BdOa+cDq7MYaeXQwPfH79xjFohzd/vU/c70ReB3vGi1hUXILxsBiLT/HutZA 1T0SD2PLekuAsW5AtZ6V1BjipydWBH3hm1Jm/EfU3H3CJ0A8giItWGs4XyaPxzZli8UP qmUYjsZltrHRJSHoKrGAjHES1xmcJG7/pE3A3HpD/lA5YYDoFNkN22RwzC/i8cC8qnvq 2+/w== 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=uE3BAtYz9ltu6LyhwAoz8H0RQaDWLv4sWn8B1Nzu95w=; b=mmE3xQ64v+3PllFSHMGTx7SbAbAvspUv3Tg12Elr45FcTtgp3MhKSD0Tf7rqhS0eVr 9pIM5AS8d12Z0kNP4lKecs1/Nqv164GzSPXkDfQ74RyQ7a/V3BnWch5cHomc32m35bVZ tPLQf8tBjQi6BZCWaiLx78ekTafdT532vdgALh3Wszc7ql3iTpw0/dTDm8tnVOG+JzL/ mpPRtWutuiS+04Ic3CzJxSv9gX3E0+vofvBaxGzSQdg3TtuwxMqFTOWBmk/At+H48EUp M5kOyzqi5mZ4BXS5gMnU2wbKt4nIt86A7etGTk0Ll0k6fP5mIFf01DTNewy1UbKyYCXT l4ZA== X-Gm-Message-State: AKS2vOwaNn+w8qegS80IPgeOne9GQeVytJZdz68/ScaautGTLbwHYFV7 ATQu58FJwNmusg== X-Received: by 10.84.232.5 with SMTP id h5mr17109750plk.261.1498724547511; Thu, 29 Jun 2017 01:22:27 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id o66sm12282396pga.64.2017.06.29.01.22.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 01:22:26 -0700 (PDT) From: Arvind Yadav To: kyungmin.park@samsung.com, s.nawrocki@samsung.com, mchehab@kernel.org, kgene@kernel.org Subject: [PATCH] media: exynos4-is: fimc-is-i2c: constify dev_pm_ops structures. Date: Thu, 29 Jun 2017 13:51:35 +0530 Message-Id: <82b48f71d328c24e7b526e6bbdff15d03229217a.1498724254.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170629_012243_722645_3517E15B X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: javier@osg.samsung.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: text data bss dec hex filename 1195 376 0 1571 623 drivers/media/platform/exynos4-is/fimc-is-i2c.o File size After adding 'const': text data bss dec hex filename 1403 176 0 1579 62b drivers/media/platform/exynos4-is/fimc-is-i2c.o Signed-off-by: Arvind Yadav --- drivers/media/platform/exynos4-is/fimc-is-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is-i2c.c b/drivers/media/platform/exynos4-is/fimc-is-i2c.c index 2f55966..70dd485 100644 --- a/drivers/media/platform/exynos4-is/fimc-is-i2c.c +++ b/drivers/media/platform/exynos4-is/fimc-is-i2c.c @@ -130,7 +130,7 @@ static int fimc_is_i2c_resume(struct device *dev) } #endif -static struct dev_pm_ops fimc_is_i2c_pm_ops = { +static const struct dev_pm_ops fimc_is_i2c_pm_ops = { SET_RUNTIME_PM_OPS(fimc_is_i2c_runtime_suspend, fimc_is_i2c_runtime_resume, NULL) SET_SYSTEM_SLEEP_PM_OPS(fimc_is_i2c_suspend, fimc_is_i2c_resume)