From patchwork Sun Jan 15 12:00:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9517367 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 EF80660571 for ; Sun, 15 Jan 2017 12:01:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA6152766D for ; Sun, 15 Jan 2017 12:01:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBEB928494; Sun, 15 Jan 2017 12:01:00 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 6288B2766D for ; Sun, 15 Jan 2017 12:00:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750842AbdAOMA4 (ORCPT ); Sun, 15 Jan 2017 07:00:56 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36264 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbdAOMAz (ORCPT ); Sun, 15 Jan 2017 07:00:55 -0500 Received: by mail-pg0-f68.google.com with SMTP id 75so2889083pgf.3; Sun, 15 Jan 2017 04:00:55 -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=mQmbvaKGErO9RvzoUPMo/QiTjZUXCnuDnZ/AXAKHxeY=; b=C5/GNF6RvcDLD3BdbpgzPwjSWMnAFQ/LZWgFIcEqt9OsBqozL4/vTZa+ckyuH3v6z2 ghTnSf7uQKAOseV93R1+vsJwMYoBnKE643FCGCUYLKqeYCcwyqZpx0HZatd/Ku6PwFW9 ntutYnhuDr+lBoxJpQqBU22liZpHYEOI3oMwqOjdADdhJvS52OoWrEOXhHjwNVx/83/L iT6el4sJSX7gexNWCmHWr87Hjl88iFdcaa8xGBEP7gmUJKPPwwdBujlrxrKnNdTUWZtW 5sHdUNpvRWKwiV5g0Azq7ghJkybglUbal+hKDTN8CBSyF1kOvzF+s4jYvpOyZ/XIdLm2 LorQ== 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=mQmbvaKGErO9RvzoUPMo/QiTjZUXCnuDnZ/AXAKHxeY=; b=dy3XodzczZCtV5Z0DLQwZq1lwzIRhvz/wt37qWeuFeppFmtYRgpbak4BjaGmUJkL0S bkk2/yCn4mRa6gJG76mYFjpGWn9yuizijkE4wqAKDLBujVzQXyNmV9gCjq4cBSYs4V4A a5mRQTfJ/qYi5/ovEksA/K6l3Unb3pYAWT1ojTKB/H5+TWA4OCwvIvowbUdETGltXBVd FMvcbEkXU6jAgNQAdbRZHwWS5z7XVQtSeEAN3V0Gw/hXaQsUMbr0vux1rNWVXxBOR0f/ kVMul5Rgrxrusl11bHEFyUI76HqoeQGHlWgJY+PNWZQWOJXZe+QgKPE0iUG0ZZmRlHw7 HP5A== X-Gm-Message-State: AIkVDXIz6b7GsNyK7S3cVe8++d5cU9PQ9p8HnLw/6S+x55p2mOBHDQUANSIH9vnvjVCvLA== X-Received: by 10.98.163.216 with SMTP id q85mr31437419pfl.123.1484481654709; Sun, 15 Jan 2017 04:00:54 -0800 (PST) Received: from gmail.com ([157.49.179.222]) by smtp.gmail.com with ESMTPSA id y6sm40620857pge.16.2017.01.15.04.00.50 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 15 Jan 2017 04:00:53 -0800 (PST) Received: by gmail.com (sSMTP sendmail emulation); Sun, 15 Jan 2017 17:30:47 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, b-liu@ti.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] usb: musb: constify dev_pm_ops structures Date: Sun, 15 Jan 2017 17:30:46 +0530 Message-Id: <1484481646-28544-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Size details after cross compiling the .o file for arm architecture. File size before: drivers/usb/musb/omap2430.o text data bss dec hex filename 4141 400 8 4549 11c5 usb/musb/omap2430.o File size after: drivers/usb/musb/omap2430.o text data bss dec hex filename 4333 200 8 4541 11bd usb/musb/omap2430.o Signed-off-by: Bhumika Goyal --- drivers/usb/musb/omap2430.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 8b73214..456f3e6 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -575,7 +575,7 @@ static int omap2430_runtime_resume(struct device *dev) return 0; } -static struct dev_pm_ops omap2430_pm_ops = { +static const struct dev_pm_ops omap2430_pm_ops = { .runtime_suspend = omap2430_runtime_suspend, .runtime_resume = omap2430_runtime_resume, };