summaryrefslogtreecommitdiff
path: root/include/linux/devfreq-event.h
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-03-10 09:27:35 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2015-03-30 17:09:41 +0900
commit6f240fbc474018872f6d9664a3bd350bd22cc8d9 (patch)
treed5eacdee7518186c03221673e19f914facfafcbf /include/linux/devfreq-event.h
parente42391cd048809d903291d07f86ed3934ce138e9 (diff)
PM / devfreq: event: Add const keyword for devfreq_event_ops structure
This patch adds the const keyword for devfreq_event_ops structure because the ops of devfreq_event_desc structure should not be changed after initialization. Cc: Myungjoo Ham <myungjoo.ham@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/devfreq-event.h')
-rw-r--r--include/linux/devfreq-event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/devfreq-event.h b/include/linux/devfreq-event.h
index 602fbbfcfeed..0a83a1e648b0 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)