mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
e42391cd04
commit
6f240fbc47
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue