From patchwork Tue Mar 10 00:27:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 5972741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72F63BF440 for ; Tue, 10 Mar 2015 00:29:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 509D7203E3 for ; Tue, 10 Mar 2015 00:29:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31CED203DF for ; Tue, 10 Mar 2015 00:29:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV81o-0002ri-Rx; Tue, 10 Mar 2015 00:28:08 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV81k-0002lJ-Su for linux-arm-kernel@lists.infradead.org; Tue, 10 Mar 2015 00:28:06 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKY00BA6ZY3UT80@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 10 Mar 2015 09:27:39 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.114]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A1.EA.17016.A7A3EF45; Tue, 10 Mar 2015 09:27:38 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-4f-54fe3a7ad4f1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D9.45.09430.A7A3EF45; Tue, 10 Mar 2015 09:27:38 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NKY000HFZY2QJ50@mmp1.samsung.com>; Tue, 10 Mar 2015 09:27:38 +0900 (KST) From: Chanwoo Choi To: myungjoo.ham@samsung.com Subject: [PATCH] devfreq: event: Add 'const' keyword for devfreq_event_ops structure Date: Tue, 10 Mar 2015 09:27:35 +0900 Message-id: <1425947255-375-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRsSkSLfK6l+Iwfnr1hbXvzxntehdcJXN 4mzTG3aLTY+vsVpc3jWHzeJz7xFGixnn9zFZ3G5cwWbxeMVbdgdOj8V7XjJ5bF5S79G3ZRWj x+dNcgEsUVw2Kak5mWWpRfp2CVwZvW2FBf+4Kq6f+M/YwLiBs4uRk0NCwERi4u7f7BC2mMSF e+vZuhi5OIQEljJKHJj3jBWm6PCDJawQiUWMEhfOX4OqamKSeNN1jRGkik1AS2L/ixtsILaI gIzE1Y3bWUCKmAX+Mkrc61gEtkNYIEzid9s5oFEcHCwCqhI9h8NATF4BZ4n7HWoQyxQkli2f CbZMQqCZXeLjqYVMIAkWAQGJb5MPsYDUSwjISmw6wAxRLylxcMUNlgmMggsYGVYxiqYWJBcU J6UXGeoVJ+YWl+al6yXn525iBAbv6X/Pencw3j5gfYhRgINRiYeXweRfiBBrYllxZe4hRlOg DROZpUST84ExklcSb2hsZmRhamJqbGRuaaYkzqso9TNYSCA9sSQ1OzW1ILUovqg0J7X4ECMT B6dU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-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150309_172805_107840_DD3EB1B0 X-CRM114-Status: GOOD ( 10.98 ) X-Spam-Score: -5.0 (-----) Cc: kgene.kim@samsung.com, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the 'const' keyword for devfreq_event_ops structure because the ops of devfreq_event_desc structure shold not be changed after initialization. Cc: Myungjoo Ham Cc: Kyungmin Park Signed-off-by: Chanwoo Choi --- drivers/devfreq/event/exynos-ppmu.c | 2 +- include/linux/devfreq-event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index ad83473..7d99d13 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -194,7 +194,7 @@ static int exynos_ppmu_get_event(struct devfreq_event_dev *edev, return 0; } -static struct devfreq_event_ops exynos_ppmu_ops = { +static const struct devfreq_event_ops exynos_ppmu_ops = { .disable = exynos_ppmu_disable, .set_event = exynos_ppmu_set_event, .get_event = exynos_ppmu_get_event, diff --git a/include/linux/devfreq-event.h b/include/linux/devfreq-event.h index 602fbbf..0a83a1e 100644 --- a/include/linux/devfreq-event.h +++ b/include/linux/devfreq-event.h @@ -91,7 +91,7 @@ struct devfreq_event_desc { const char *name; void *driver_data; - struct devfreq_event_ops *ops; + const struct devfreq_event_ops *ops; }; #if defined(CONFIG_PM_DEVFREQ_EVENT)