From patchwork Sun Jan 15 09:59:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 715424 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3v1X0d6m2dz9sD6 for ; Sun, 15 Jan 2017 21:00:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VbMwv4iV"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751040AbdAOKAA (ORCPT ); Sun, 15 Jan 2017 05:00:00 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34722 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbdAOJ77 (ORCPT ); Sun, 15 Jan 2017 04:59:59 -0500 Received: by mail-pg0-f65.google.com with SMTP id b1so2725738pgc.1; Sun, 15 Jan 2017 01:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=BDGEpRDBB69EUXZ3rVSBXPz3j1uVD1N21aIVS+g7MOM=; b=VbMwv4iVw+z2oUh7fL0l9nE3RyWxC2X2J9RuZqOJ7MKXH9x0spQerxBJk53flUeVPW co4M4yhHs8w2b/NhyIi2fizH2Imim1KZSmNqwmsKpK9zNe4RaSlBaCHZlBgiMck424QK MG+sVjUMveBA34bXutPdP8FfSHP7sQ1QxgN0Ilj/DyE/u+HPxKnydiVs0cu7kIkdITSj gUBlTIsej5jACIzD2NZmeSkWYGlvYL4zB2+BV0Bu7e93aI9Wa7h7BGgpCcAQaLshowxp OW5aZU/+0yZXLH2JGRCi5RU+2taUXLDbPys7LmvpeeU0HbOJtOqbeXSTHlMBJri1uA5J jkSA== 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=BDGEpRDBB69EUXZ3rVSBXPz3j1uVD1N21aIVS+g7MOM=; b=WVutAMZmZ6udabhgxu1XCiBllOA5ediz2kBn2nafQA8WgMoplkrWCI+x97OZoTSKB1 xNA5bAIBER9+F7eR4dS+LklV7JWvrjkaRxdLHt76mMWHacPXjImCB+3UIyk4R0nm2Toq daVjkyz9th0lUPUbYbQC0OSGSp6EDPluNp/GdYffANGVKcUepf+bWKnYhNnO+7JPn+Q3 ddQDYewsEcSlREEC37t9QHpTHFIQKIZ95ctxyQjdYbQgqzVk7hX8FyzdsPlGMM51SVtJ 2HOKfMq/K4ToJlUliC4K14h3L9cq5mJ9lDpUd8oxVmzi91twf+unb15ZAIJEgk45PKVS V47A== X-Gm-Message-State: AIkVDXKkzf6oULDFItFCwxKHn9fiAWXoQGGgkHDnBBTAqSKqlAfewR/EDUQcP9i35swtvA== X-Received: by 10.98.215.27 with SMTP id b27mr28400527pfh.70.1484474393484; Sun, 15 Jan 2017 01:59:53 -0800 (PST) Received: from gmail.com ([157.49.0.242]) by smtp.gmail.com with ESMTPSA id d68sm7870261pfj.92.2017.01.15.01.59.47 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 15 Jan 2017 01:59:51 -0800 (PST) Received: by gmail.com (sSMTP sendmail emulation); Sun, 15 Jan 2017 15:29:44 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, tony@atomide.com, wsa@the-dreams.de, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] i2c: busses: constify dev_pm_ops structures Date: Sun, 15 Jan 2017 15:29:41 +0530 Message-Id: <1484474381-1064-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Declare dev_pm_ops structures as const as they are only stored in the pm field of a device_driver structure. This field is of type const, so dev_pm_ops structures having similar properties can be declared const too. File size before: drivers/i2c/busses/i2c-omap.o text data bss dec hex filename 6814 584 0 7398 1ce6 drivers/i2c/busses/i2c-omap.o File size after: drivers/i2c/busses/i2c-omap.o text data bss dec hex filename 7006 392 0 7398 1ce6 drivers/i2c/busses/i2c-omap.o Signed-off-by: Bhumika Goyal Acked-by: Tony Lindgren --- drivers/i2c/busses/i2c-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index c7da0c4..1ebb5e9 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1504,7 +1504,7 @@ static int omap_i2c_runtime_resume(struct device *dev) return 0; } -static struct dev_pm_ops omap_i2c_pm_ops = { +static const struct dev_pm_ops omap_i2c_pm_ops = { SET_RUNTIME_PM_OPS(omap_i2c_runtime_suspend, omap_i2c_runtime_resume, NULL) };